diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-21 16:53:07 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-21 16:53:07 +0200 |
commit | e9232199bdd97233dabd59f07c63607c93c0c59c (patch) | |
tree | 66aff19650079c9fc990f75d2ed390dd674cfdaa /src/kernel | |
parent | Add allocator (diff) | |
download | kernel.cpp-e9232199bdd97233dabd59f07c63607c93c0c59c.tar.xz |
Check multiboot2 header length, and if needed map the next page as well
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/multiboot.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/multiboot.cc b/src/kernel/multiboot.cc index 024916e..e0626f0 100644 --- a/src/kernel/multiboot.cc +++ b/src/kernel/multiboot.cc @@ -1,5 +1,7 @@ #include <multiboot2.h> -#include <types.h> + +typedef multiboot_uint16_t uint16_t; +typedef multiboot_uint32_t uint32_t; uint32_t check_multiboot(uint32_t mb_magic, uint32_t mb_addr) { if (mb_magic != MULTIBOOT2_BOOTLOADER_MAGIC) return 0; |