From 94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868 Mon Sep 17 00:00:00 2001 From: "kaihuan.pkh" Date: Mon, 18 Nov 2019 20:08:36 +0800 Subject: support smbios alloc buffer in fseg memory and fill it with smbios anchor and tables which read from the fw_cfg, then check type0 table and rebuild it if it's not exist. mainly inspired by the seabios, and borrowed some code from it. Reviewed-by: Ben Luo Signed-off-by: kaihuan.pkh --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index ea67f3c..afa2200 100644 --- a/main.c +++ b/main.c @@ -7,6 +7,7 @@ #include "fw_cfg.h" #include "pci.h" #include "benchmark.h" +#include "smbios.h" static void set_realmode_int(int vec, void *p) { @@ -98,7 +99,7 @@ int __attribute__ ((section (".text.startup"))) main(void) extract_acpi(); extract_e820(); setup_mptable(); - // extract_smbios(); + extract_smbios(); boot_from_fwcfg(); panic(); } -- cgit v1.1