浏览代码

[libcpu/riscv/virt64] fix (#5979) (#7040)

zilong 2 年之前
父节点
当前提交
50e1f6327d
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      libcpu/risc-v/virt64/startup_gcc.S

+ 4 - 2
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"