diff options
author | Marvin Borner | 2021-04-29 23:59:48 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-29 23:59:48 +0200 |
commit | 3a3d50d7eb0f4fdbb9beaf16bacfa98689cc448c (patch) | |
tree | d837ed9ed9470a20b66b28b6083d30865d7e6016 /kernel/multiboot.c | |
parent | f8e47b6b0c0578c52d82c0e243620361b87a4abe (diff) |
Alright!
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; |