aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/multiboot.cc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-21 16:53:07 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-21 16:53:07 +0200
commite9232199bdd97233dabd59f07c63607c93c0c59c (patch)
tree66aff19650079c9fc990f75d2ed390dd674cfdaa /src/kernel/multiboot.cc
parentAdd allocator (diff)
downloadkernel.cpp-e9232199bdd97233dabd59f07c63607c93c0c59c.tar.xz
Check multiboot2 header length, and if needed map the next page as well
Diffstat (limited to 'src/kernel/multiboot.cc')
-rw-r--r--src/kernel/multiboot.cc4
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;