E. Almqvist 3 years ago
parent 14e5cd804a
commit bb34ec27ad
  1. 14
      kernel/kernel_entry.asm

@ -1,8 +1,18 @@
[bits 32] [bits 32]
[extern kernel_init] [extern kernel_init]
multiboot2: MBOOT_PAGE_ALIGN equ 1<<0
dw 0xE85250D6 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
call kernel_init call kernel_init
jmp $ jmp $

Loading…
Cancel
Save