2015-07-19 11:20:21 +04:00
|
|
|
[BITS 32]
|
|
|
|
|
2015-07-19 11:52:01 +04:00
|
|
|
;Define extern symbol
|
2015-07-21 16:53:10 +04:00
|
|
|
extern _boot
|
2015-07-19 11:20:21 +04:00
|
|
|
|
2015-07-19 11:52:01 +04:00
|
|
|
;Define entry point as global for linking
|
2015-07-21 14:23:57 +04:00
|
|
|
global _kernelEntry
|
2015-07-19 11:20:21 +04:00
|
|
|
|
|
|
|
;Define kernel entry point
|
2015-07-21 14:23:57 +04:00
|
|
|
_kernelEntry:
|
2015-07-19 11:52:01 +04:00
|
|
|
jmp begin ;Go to begin (for skip Multiboot Specification Header)
|
2015-07-19 11:20:21 +04:00
|
|
|
|
|
|
|
|
|
|
|
;----- Multiboot Specification Header -----
|
|
|
|
align 4 ;Align data for 32 bits
|
|
|
|
dd 0x1BADB002
|
|
|
|
dd 0x0
|
|
|
|
dd 0x1BADB002
|
|
|
|
;----- End -----
|
|
|
|
|
|
|
|
|
2015-07-22 13:22:53 +04:00
|
|
|
;Run kernel
|
2015-07-19 11:20:21 +04:00
|
|
|
begin:
|
2015-07-21 16:53:10 +04:00
|
|
|
call _boot ;Start kernel
|