diff options
author | Marvin Borner | 2020-04-17 19:55:42 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-17 19:55:42 +0200 |
commit | 27c38d3f6e473d2bf7075fb364db148f22aca203 (patch) | |
tree | feec581b3198056143efab07d154a3dafeb79d80 /src/kernel/multiboot.c | |
parent | 0aea2cf7d4c53f49e48c272ac7427ab337b476db (diff) |
Added multiboot smbios table
idk why, but grub doesn't seem to find a smbios table in qemu. I tried
a local dump of my pc's smbios but this doesn't work either.. *thinking*
Diffstat (limited to 'src/kernel/multiboot.c')
-rw-r--r-- | src/kernel/multiboot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/multiboot.c b/src/kernel/multiboot.c index 2c5fa60..2df1d0e 100644 --- a/src/kernel/multiboot.c +++ b/src/kernel/multiboot.c @@ -1,6 +1,7 @@ #include <stdint.h> #include <kernel/system.h> #include <kernel/multiboot.h> +#include <kernel/smbios/smbios.h> #include <kernel/lib/lib.h> #include <kernel/lib/stdio.h> @@ -45,6 +46,11 @@ void multiboot_parse(uint32_t multiboot_address) case MULTIBOOT_TAG_TYPE_EFI32: info("Got EFI32"); break; + case MULTIBOOT_TAG_TYPE_SMBIOS: + // GRUB doesn't detect SMBIOS on QEMU! + info("Got SMBIOS table"); + smbios_init((struct multiboot_tag_smbios *)tag); + break; case MULTIBOOT_TAG_TYPE_ACPI_OLD: info("Got ACPI table"); break; |