aboutsummaryrefslogtreecommitdiff
path: root/kernel/boot.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/boot.h
parentGenerate src/conf.h (diff)
downloadkernel-20b97ea7c0dbbdc13800e12ff5c86c00c4a342ec.tar.xz
Bazel build
Diffstat (limited to 'kernel/boot.h')
-rw-r--r--kernel/boot.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/boot.h b/kernel/boot.h
new file mode 100644
index 0000000..646fb4c
--- /dev/null
+++ b/kernel/boot.h
@@ -0,0 +1,21 @@
+/* *** glitch kernel ***
+ * spdx-license-identifier: ISC
+ * description: kernel boot information
+ * */
+
+#pragma once
+
+typedef struct {
+ /* kernel command line */
+ char cmdline[64];
+
+ /* memory map */
+ unsigned bitmap[1024 * 32];
+
+ /* module */
+ unsigned module_start;
+ unsigned module_end;
+ char module_cmdline[64];
+} boot_info_t;
+
+/* TODO _Static_assert((1024 * 32 * sizeof(unsigned) * 8) == (1024 * 1024), "bitmap size check"); */