old-DasOS/prototypes/base/entrypoint.S

22 lines
272 B
ArmAsm
Raw Normal View History

2016-04-30 13:10:28 +00:00
.section .text
.extern init
.extern compat_call_ctors
.extern compat_call_dtors
2016-04-30 13:10:28 +00:00
.global _start
_start:
mov $kernel_stack, %esp
2016-04-30 13:10:28 +00:00
call compat_call_ctors
call init
call compat_call_dtors
2016-04-30 13:10:28 +00:00
_stop:
cli
hlt
jmp _stop
2016-04-30 13:10:28 +00:00
.section .bss
.space 8192
kernel_stack: