A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eOS/kernel/kernel_entry.asm

19 lines
403 B

3 years ago
[bits 32]
[extern kernel_init]
3 years ago
3 years ago
MBOOT_PAGE_ALIGN equ 1<<0
MBOOT_MEMORY_INFO equ 1<<1
MBOOT_HEADER_MAGIC equ 0x1BADB002
MBOOT_HEADER_FLAGS equ MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO
MBOOT_CHECKSUM equ -(MBOOT_HEADER_MAGIC + MBOOT_HEADER_FLAGS)
;align 4
;multiboot_header:
; dd MBOOT_HEADER_MAGIC
; dd MBOOT_HEADER_FLAGS
; dd MBOOT_CHECKSUM
3 years ago
3 years ago
call kernel_init
3 years ago
jmp $