diff options
author | dzwdz | 2022-08-15 20:48:23 +0200 |
---|---|---|
committer | dzwdz | 2022-08-15 20:48:23 +0200 |
commit | 3e80780859c4cbe5223ca4329bfd6176f5c2c879 (patch) | |
tree | 92f42d2720d84434276c5382f1b43b8d73124827 /src/kernel/arch/amd64/multiboot2.S | |
parent | fa082df2da6b3be52c66ce0d48c209a3df38115d (diff) |
kernel: port to multiboot2
Diffstat (limited to 'src/kernel/arch/amd64/multiboot2.S')
-rw-r--r-- | src/kernel/arch/amd64/multiboot2.S | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/multiboot2.S b/src/kernel/arch/amd64/multiboot2.S new file mode 100644 index 0000000..b001eda --- /dev/null +++ b/src/kernel/arch/amd64/multiboot2.S @@ -0,0 +1,30 @@ +#define ASM_FILE 1 +#include "3rdparty/multiboot2.h" + +.section .multiboot +.align 8 +.set HEADERLEN, multiboot_header_end - multiboot_header +multiboot_header: + .long MULTIBOOT2_HEADER_MAGIC + .long MULTIBOOT_ARCHITECTURE_I386 + .long HEADERLEN + .long -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT_ARCHITECTURE_I386 + HEADERLEN) + + .align 8 + .short MULTIBOOT_HEADER_TAG_FRAMEBUFFER + .short 0 + .long 20 + .long 0 + .long 0 + .long 32 + + .align 8 + .short MULTIBOOT_HEADER_TAG_MODULE_ALIGN + .short 0 + .long 8 + + .align 8 + .short MULTIBOOT_HEADER_TAG_END + .short 0 + .long 8 +multiboot_header_end: |