diff options
Diffstat (limited to 'kernel/include/multiboot2.h')
| -rw-r--r-- | kernel/include/multiboot2.h | 13 |
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 |
