summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcpu/risc-v/virt64/startup_gcc.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcpu/risc-v/virt64/startup_gcc.S b/libcpu/risc-v/virt64/startup_gcc.S
index 230c258db8..d1d4ce11e5 100644
--- a/libcpu/risc-v/virt64/startup_gcc.S
+++ b/libcpu/risc-v/virt64/startup_gcc.S
@@ -13,8 +13,10 @@
#include <encoding.h>
#include <cpuport.h>
-boot_hartid: .int
- .global boot_hartid
+ .data
+ .global boot_hartid /* global varible rt_boot_hartid in .data section */
+boot_hartid:
+ .word 0xdeadbeef
.global _start
.section ".start", "ax"