2016-04-30 13:10:28 +00:00
|
|
|
.section .text
|
|
|
|
|
|
|
|
.extern init
|
2016-05-01 18:22:12 +00:00
|
|
|
.extern compat_call_ctors
|
|
|
|
.extern compat_call_dtors
|
2016-04-30 13:10:28 +00:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
2016-05-01 18:22:12 +00:00
|
|
|
mov $kernel_stack, %esp
|
2016-04-30 13:10:28 +00:00
|
|
|
|
2016-05-04 09:51:23 +00:00
|
|
|
push %ebx
|
2016-05-01 18:22:12 +00:00
|
|
|
call compat_call_ctors
|
|
|
|
call init
|
|
|
|
call compat_call_dtors
|
|
|
|
|
2016-04-30 13:10:28 +00:00
|
|
|
_stop:
|
2016-05-01 18:22:12 +00:00
|
|
|
cli
|
|
|
|
hlt
|
|
|
|
jmp _stop
|
|
|
|
|
2016-04-30 13:10:28 +00:00
|
|
|
.section .bss
|
|
|
|
.space 8192
|
|
|
|
kernel_stack:
|