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 --- include/smbios.h | 1 + include/string.h | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 include/smbios.h (limited to 'include') diff --git a/include/smbios.h b/include/smbios.h new file mode 100644 index 0000000..ec033ce --- /dev/null +++ b/include/smbios.h @@ -0,0 +1 @@ +void extract_smbios(void); diff --git a/include/string.h b/include/string.h index d1bb037..cf9fde9 100644 --- a/include/string.h +++ b/include/string.h @@ -2,6 +2,7 @@ #define BIOS_STRING_H #include +#include unsigned long strlen(const char *buf); char *strcat(char *dest, const char *src); @@ -12,6 +13,7 @@ char *strstr(const char *s1, const char *s2); int memcmp(const void *s1, const void *s2, size_t n); void *memmove(void *dest, const void *src, size_t n); void *memchr(const void *s, int c, size_t n); +uint8_t csum8(uint8_t *buf, uint32_t len); static inline void *memset(void *s, int c, size_t n) { -- cgit v1.1