From edf9e71e2a7b6b89775c29cf28c19c6b89992c25 Mon Sep 17 00:00:00 2001 From: aqua Date: Mon, 28 Mar 2022 20:03:38 +0300 Subject: Initial commit x86 kernel that prints a hello world message to com1 --- src/boot.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/boot.h (limited to 'src/boot.h') diff --git a/src/boot.h b/src/boot.h new file mode 100644 index 0000000..56ff219 --- /dev/null +++ b/src/boot.h @@ -0,0 +1,24 @@ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +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; + +_Static_assert((1024 * 32 * sizeof(unsigned) * 8) == (1024 * 1024)); + +#ifdef __cplusplus +} +#endif -- cgit v1.2.1