summaryrefslogtreecommitdiff
path: root/kernel/multiboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/multiboot.c')
-rw-r--r--kernel/multiboot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/multiboot.c b/kernel/multiboot.c
index ee84180..ada9a4e 100644
--- a/kernel/multiboot.c
+++ b/kernel/multiboot.c
@@ -1,13 +1,15 @@
#include "kernel.h"
#include "multiboot.h"
-multiboot_information* multiboot_read(uint32_t eax, uint32_t ebx)
+multiboot_information* multiboot_read(uint32_t eax, uint32_t ebx, bool silent)
{
if(eax!=0x2badb002)kpanic("EAX was not set properly by your bootlaoder!");
- klog("multiboot struct at addr: 0x%08X",ebx);
multiboot_information *info;
info=ebx;
+ if(silent) return info; // silence is golden
+
+ klog("multiboot struct at addr: 0x%08X",ebx);
klog("multiboot flags: 0x%08X",info->flags);