diff options
| author | Miguel <m.i@gmx.at> | 2018-09-10 00:54:35 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-10 00:54:35 +0200 |
| commit | 88c5873713a4eda47d299abd9cecaa49221ec9fe (patch) | |
| tree | 0eeb21f69824ddbef5e3076704fc099d65848244 /kernel/multiboot.c | |
| parent | 074490c63dd09fc941b1162f62af1985ee9576d3 (diff) | |
physical memory manager review et al.
Diffstat (limited to 'kernel/multiboot.c')
| -rw-r--r-- | kernel/multiboot.c | 6 |
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); |
