mirror of
https://github.com/plctlab/riscv-operating-system-mooc.git
synced 2025-11-16 12:34:47 +00:00
The purpose is to facilitate porting to RV64. Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
33 lines
549 B
ArmAsm
33 lines
549 B
ArmAsm
#define SIZE_PTR .word
|
|
|
|
.section .rodata
|
|
.global HEAP_START
|
|
HEAP_START: SIZE_PTR _heap_start
|
|
|
|
.global HEAP_SIZE
|
|
HEAP_SIZE: SIZE_PTR _heap_size
|
|
|
|
.global TEXT_START
|
|
TEXT_START: SIZE_PTR _text_start
|
|
|
|
.global TEXT_END
|
|
TEXT_END: SIZE_PTR _text_end
|
|
|
|
.global DATA_START
|
|
DATA_START: SIZE_PTR _data_start
|
|
|
|
.global DATA_END
|
|
DATA_END: SIZE_PTR _data_end
|
|
|
|
.global RODATA_START
|
|
RODATA_START: SIZE_PTR _rodata_start
|
|
|
|
.global RODATA_END
|
|
RODATA_END: SIZE_PTR _rodata_end
|
|
|
|
.global BSS_START
|
|
BSS_START: SIZE_PTR _bss_start
|
|
|
|
.global BSS_END
|
|
BSS_END: SIZE_PTR _bss_end
|