aboutsummaryrefslogtreecommitdiff
path: root/src/boot.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-05-24 21:29:00 +0300
committeraqua <aqua@iserlohn-fortress.net>2023-05-24 21:29:29 +0300
commit050aa3ab70dd69d1ca8ffe94fd146039a0885550 (patch)
tree4002a7a0bb86580cc6a2adc2eee45891ee068540 /src/boot.h
parentPlace compiled objects and dependencies in build/ (diff)
downloadkernel-050aa3ab70dd69d1ca8ffe94fd146039a0885550.tar.xz
Make code ANSI C compatible
Diffstat (limited to 'src/boot.h')
-rw-r--r--src/boot.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/boot.h b/src/boot.h
index 8d62bdc..646fb4c 100644
--- a/src/boot.h
+++ b/src/boot.h
@@ -1,24 +1,21 @@
-#pragma once
+/* *** glitch kernel ***
+ * spdx-license-identifier: ISC
+ * description: kernel boot information
+ * */
-#ifdef __cplusplus
-extern "C" {
-#endif
+#pragma once
typedef struct {
- // kernel command line
+ /* kernel command line */
char cmdline[64];
- // memory map
+ /* memory map */
unsigned bitmap[1024 * 32];
- // module
+ /* module */
unsigned module_start;
unsigned module_end;
char module_cmdline[64];
} boot_info_t;
-_Static_assert((1024 * 32 * sizeof(unsigned) * 8) == (1024 * 1024), "bitmap size check");
-
-#ifdef __cplusplus
-}
-#endif
+/* TODO _Static_assert((1024 * 32 * sizeof(unsigned) * 8) == (1024 * 1024), "bitmap size check"); */