aboutsummaryrefslogtreecommitdiffstats
path: root/src/kernel/kernel.asm
blob: fe19902c734e0c3553333d01c2977711b90941a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;; kernel.asm
[bits 32]
[org 0x10000]

%include "common.asm"

_kernel_entry:  
        cli                         ; No interrupts yet

        call _clear_screen
        mov esi, welcome_msg
        call _print_string_pm_vga

;; Init Forth VM
        mov ebp, FS_DATA_STACK
        mov edi, FS_RET_STACK
        
        
        
.halt: hlt
        jmp .halt

welcome_msg:
        db "Welcome...", 0
        

%include "common.protmode.print.asm"
%include "common.protmode.clear.asm"

%include "pci.asm"