On 14.07.22 16:03, Daniel Cederman wrote:
diff --git a/bsps/riscv/shared/start/start.S b/bsps/riscv/shared/start/start.S
index 3702f8ac2f..21945a99f5 100644
--- a/bsps/riscv/shared/start/start.S
+++ b/bsps/riscv/shared/start/start.S
@@ -35,6 +35,16 @@
#include
#include
+#if __riscv_xlen
On 14.07.22 16:03, Daniel Cederman wrote:
+/*
+ * This variable is initialized by the first CPU entering the BSP start code.
+ * The value is the stack pointer at entry.
+ */
+extern uintptr_t riscv_start_stack_pointer;
Since C code should not modify this, maybe declare it as const.
--
embedde
From: Martin Aberg
Remember the initial stack pointer in start.S. It can later be used to
determine top of RAM.
---
bsps/riscv/include/bsp/start.h| 67
.../shared/start/bspgetworkarea-fromstack.c | 76 +++
bsps/riscv/shared/start/start.S