summaryrefslogtreecommitdiff
path: root/kernel/include/multiboot2.h
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksav013@gmail.com>2022-08-22 15:12:25 +0200
committerAleksa Vuckovic <aleksav013@gmail.com>2022-08-22 20:34:28 +0200
commit9a54c41ad07ec00316bb8fcdeba51c215446d454 (patch)
tree388f7704a61ff0e103875e3ccbc4435589f6a898 /kernel/include/multiboot2.h
parent501a706643a056863b6ea214882a2be270966f87 (diff)
ext2 as multiboot2 module
Diffstat (limited to 'kernel/include/multiboot2.h')
-rw-r--r--kernel/include/multiboot2.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/kernel/include/multiboot2.h b/kernel/include/multiboot2.h
index 6d4a86f..994dbc5 100644
--- a/kernel/include/multiboot2.h
+++ b/kernel/include/multiboot2.h
@@ -37,6 +37,15 @@ struct mb2_tag_mmap_entry {
};
typedef struct mb2_tag_mmap_entry mb2_tag_mmap_entry;
+struct mb2_tag_module {
+ uint32_t type;
+ uint32_t size;
+ uint32_t mod_start;
+ uint32_t mod_end;
+ char* name;
+};
+typedef struct mb2_tag_module mb2_tag_module;
+
// multiboot2 magic check
#define MB2_MAGIC 0x36D76289
@@ -45,16 +54,18 @@ typedef struct mb2_tag_mmap_entry mb2_tag_mmap_entry;
#define MB2_TAG_END 0
#define MB2_TAG_CMDLINE 1
#define MB2_TAG_BOOTLOADER 2
-#define MB2_TAG_MODULES 3
+#define MB2_TAG_MODULE 3
#define MB2_TAG_MEM 4
#define MB2_TAG_BIOS 5
#define MB2_TAG_MMAP 6
#define MB2_TAG_VBE 7
#define MB2_TAG_FB 8
+extern mb2_tag_module* ext2_module;
void read_mb2(mb2_tag_header* multiboot_bootinfo, uint32_t multiboot_magic);
void init_fb(mb2_tag_fb* tag_fb);
void init_mmap(mb2_tag_mmap* tag_mmap);
+void init_module(mb2_tag_module* tag_module);
#endif