summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot.nasm
blob: 11175af2e69e0f4f69df975327aa1d239217f2a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
section .text
extern main, _estack, _init
global _start:function
_start:
            ; Stack setup
            mov eax, _estack
            ; Align stack to odd address
            and eax, 0xFFFFFFFE
            mov esp, eax

            call _init
            call main
            cli
.hang:      hlt
            jmp .hang
; .end: