aboutsummaryrefslogtreecommitdiff
path: root/kernel/mmap.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2024-03-08 17:24:49 +0200
committeraqua <aqua@iserlohn-fortress.net>2024-03-08 22:00:07 +0200
commit20b97ea7c0dbbdc13800e12ff5c86c00c4a342ec (patch)
tree473281e5fc8b256827ce1a678573444e1aa5f669 /kernel/mmap.h
parentGenerate src/conf.h (diff)
downloadkernel-20b97ea7c0dbbdc13800e12ff5c86c00c4a342ec.tar.xz
Bazel build
Diffstat (limited to 'kernel/mmap.h')
-rw-r--r--kernel/mmap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/mmap.h b/kernel/mmap.h
new file mode 100644
index 0000000..13f40f2
--- /dev/null
+++ b/kernel/mmap.h
@@ -0,0 +1,7 @@
+#pragma once
+
+#include "boot.h"
+#include <multiboot2.h>
+
+__attribute__((section(".multiboot.text"))) unsigned multiboot2_mmap(const struct multiboot_mmap_entry entries[],
+ unsigned entry_count, unsigned bitmap[1024 * 32]);