From 3a3d50d7eb0f4fdbb9beaf16bacfa98689cc448c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 29 Apr 2021 23:59:48 +0200 Subject: Alright! --- kernel/multiboot.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'kernel/multiboot.c') 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; -- cgit v1.2.3