aboutsummaryrefslogtreecommitdiff
path: root/.old/boot_s2.asm
blob: b974827eb580b801923d3f07aa0f23a024c9d115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; boot_stage2.asm - stage2
[bits 32]

global _start
extern kmain

section .text

_start:
        ; reload segments
        mov ax, 0x10
        mov ds, ax
        mov es, ax
        mov ss, ax
        mov fs, ax
        mov gs, ax
        mov esp, 0x90000                ; stack

        mov dword [0xB8000], 0x07410741
        call kmain

        hlt