aboutsummaryrefslogtreecommitdiff
path: root/lib/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/trace.c')
-rw-r--r--lib/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/trace.c b/lib/trace.c
index 831283c..defc971 100644
--- a/lib/trace.c
+++ b/lib/trace.c
@@ -57,7 +57,7 @@ static inline uintptr_t __attribute__((no_instrument_function))
return offset / FUNC_SITE_SIZE;
}
-#if defined(CONFIG_EFI_LOADER) && defined(CONFIG_ARM)
+#if defined(CONFIG_EFI_LOADER) && (defined(CONFIG_ARM) || defined(CONFIG_RISCV))
/**
* trace_gd - the value of the gd register