diff options
author | Xiang Wang <wxjstz@126.com> | 2019-03-04 17:17:08 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-03-05 09:09:40 +0530 |
commit | 1c87f0f9b1952ba9770345fc8781ce3bd2d4de7c (patch) | |
tree | 3aa94b3ecaa177802c57a15e03ace5c3c31f9c2b /firmware | |
parent | a72467f5747fd6c9468581a787cdd51692bf01ef (diff) |
firmware: Move _boot_hart_done to the data section
Writable code section can cause some security problems, so move _boot_hart_done
to the data section
Signed-off-by: Xiang Wang <wxjstz@126.com>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/fw_base.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S index f6b30f0..b28cfb5 100644 --- a/firmware/fw_base.S +++ b/firmware/fw_base.S @@ -111,12 +111,6 @@ _fdt_reloc_done: la a4, _boot_hart_done li a5, 1 REG_S a5, (a4) - j _wait_for_boot_hart - - .align 3 -_boot_hart_done: - RISCV_PTR 0 - .align 3 /* Wait for boot hart */ _wait_for_boot_hart: @@ -198,6 +192,11 @@ _start_warm: j _start_hang .align 3 + .section .data, "aw" +_boot_hart_done: + RISCV_PTR 0 + + .align 3 .section .entry, "ax", %progbits .globl _hartid_to_scratch _hartid_to_scratch: |