Files
riscv-operating-system-mooc/code/os/09-lock/mem.S
Wang Chen fd1d098906 Encapsulate some types related to cpu word length.
The purpose is to facilitate porting to RV64.

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
2024-03-27 14:30:53 +08:00

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