diff options
Diffstat (limited to 'kernel/multiboot.c')
-rw-r--r-- | kernel/multiboot.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/multiboot.c b/kernel/multiboot.c index a9a0c75..8fa7aa6 100644 --- a/kernel/multiboot.c +++ b/kernel/multiboot.c @@ -18,9 +18,16 @@ CLEAR void multiboot_init(u32 magic, u32 addr) } } +CLEAR u32 multiboot_vbe(void) +{ + assert(info->flags & MULTIBOOT_INFO_VBE_INFO); + + return info->vbe_mode_info; +} + CLEAR void multiboot_mmap(void) { - assert(info->flags & MULTIBOOT_INFO_MEMORY); + assert(info->flags & MULTIBOOT_INFO_MEM_MAP); struct multiboot_mmap_entry *mmap = (void *)info->mmap_addr; u32 length = info->mmap_length; |