diff options
author | kaihuan.pkh <kaihuan.pkh@alibaba-inc.com> | 2019-11-18 20:08:36 +0800 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2019-11-18 15:52:42 +0100 |
commit | 94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868 (patch) | |
tree | bcf70ecfa51cb72607f497caf87d0b4050d1d3a4 /main.c | |
parent | cb1c49e0cfac99b9961d136ac0194da62c28cf64 (diff) | |
download | qboot-94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868.zip qboot-94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868.tar.gz qboot-94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868.tar.bz2 |
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 <luoben@linux.alibaba.com>
Signed-off-by: kaihuan.pkh <kaihuan.pkh@alibaba-inc.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); } |