From 50e1f6327d2e03b887dfbff0af2dd87fd41d4d48 Mon Sep 17 00:00:00 2001 From: zilong <52786674+zilongmix@users.noreply.github.com> Date: Sat, 11 Mar 2023 12:34:14 +0800 Subject: [PATCH] [libcpu/riscv/virt64] fix (#5979) (#7040) --- libcpu/risc-v/virt64/startup_gcc.S | 6 ++++-- 1 file 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 #include -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"