os_kernel_lab/related_info/lab5/lab5-spoc-discuss/user/libs/initcode.S

15 lines
241 B
ArmAsm
Raw Normal View History

2015-04-20 12:44:41 +08:00
.text
.globl _start
_start:
# set ebp for backtrace
movl $0x0, %ebp
# move down the esp register
# since it may cause page fault in backtrace
subl $0x20, %esp
# call user-program function
call umain
1: jmp 1b