riscv: save hart ID and device tree passed by prior boot stage
[oweals/u-boot.git] / arch / riscv / cpu / cpu.c
index ae57fb83132d6a46de56c45e26bc5051b1f0756e..d9f820c44c054dba9b6412e7d7a731d508ed6f5e 100644 (file)
@@ -6,6 +6,12 @@
 #include <common.h>
 #include <asm/csr.h>
 
+/*
+ * prior_stage_fdt_address must be stored in the data section since it is used
+ * before the bss section is available.
+ */
+phys_addr_t prior_stage_fdt_address __attribute__((section(".data")));
+
 enum {
        ISA_INVALID = 0,
        ISA_32BIT,