From bb34ec27adc89e29b0e7ee34a7b69f90f92cb34d Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 12 Mar 2022 17:11:28 +0100 Subject: [PATCH] Stuff --- kernel/kernel_entry.asm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kernel/kernel_entry.asm b/kernel/kernel_entry.asm index b9ce0cc..fe1674d 100644 --- a/kernel/kernel_entry.asm +++ b/kernel/kernel_entry.asm @@ -1,8 +1,18 @@ [bits 32] [extern kernel_init] -multiboot2: - dw 0xE85250D6 +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 + call kernel_init jmp $