aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-01 07:42:09 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-01 07:42:09 +0000
commitb8e58d2f64fbb171b8687b9dd104ddd22fe4fc8e (patch)
tree2cd042bd040e41b23af63d788a8c7f2f4c14e7e0 /arch/x86_64/include
parent20a5e5377c0f8e0769d67a7928891597bc463e3d (diff)
downloadteachos-b8e58d2f64fbb171b8687b9dd104ddd22fe4fc8e.tar.xz
teachos-b8e58d2f64fbb171b8687b9dd104ddd22fe4fc8e.zip
Adjust printing of memory map
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/boot/multiboot.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/x86_64/include/arch/boot/multiboot.hpp b/arch/x86_64/include/arch/boot/multiboot.hpp
index 4182a18..c39081a 100644
--- a/arch/x86_64/include/arch/boot/multiboot.hpp
+++ b/arch/x86_64/include/arch/boot/multiboot.hpp
@@ -2,8 +2,7 @@
struct multiboot_tag
{
- uint16_t type;
- uint16_t flags;
+ uint32_t type;
uint32_t size;
};
@@ -27,6 +26,14 @@ struct memory_map_entry
uint32_t reserved;
};
+struct memory_map_info
+{
+ multiboot_tag tag;
+ uint32_t entry_size;
+ uint32_t entry_version;
+ struct memory_map_entry entries;
+};
+
/*
* Define all multiboot tag types to ther respective values
* The gnu boot information format is defined here: