diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2019-04-17 14:42:05 +0200 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-05-19 16:17:33 +0800 |
commit | b52e9f0cb748d2a2ae26db62072294b9cccdb86f (patch) | |
tree | 78edab49e80a12125a54e8056853aed57d7005f9 /arch/x86 | |
parent | 98b3156b0df4b0df9cb3a0bbfc240d0c4edd2638 (diff) | |
download | u-boot-b52e9f0cb748d2a2ae26db62072294b9cccdb86f.tar.gz u-boot-b52e9f0cb748d2a2ae26db62072294b9cccdb86f.tar.bz2 u-boot-b52e9f0cb748d2a2ae26db62072294b9cccdb86f.zip |
x86: coreboot: make it possible to process unhandled tags
coreboot makes it possible to add own entries into coreboot's
table at a per mainboard basis. As there might be some custom
ones it makes sense to provide a way to process them.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/coreboot/tables.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/cpu/coreboot/tables.c b/arch/x86/cpu/coreboot/tables.c index bc18b710c9..37e0424b5e 100644 --- a/arch/x86/cpu/coreboot/tables.c +++ b/arch/x86/cpu/coreboot/tables.c @@ -109,6 +109,10 @@ static void cb_parse_string(unsigned char *ptr, char **info) *info = (char *)((struct cb_string *)ptr)->string; } +__weak void cb_parse_unhandled(u32 tag, unsigned char *ptr) +{ +} + static int cb_parse_header(void *addr, int len, struct sysinfo_t *info) { struct cb_header *header; @@ -211,6 +215,9 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info) case CB_TAG_VBNV: cb_parse_vbnv(ptr, info); break; + default: + cb_parse_unhandled(rec->tag, ptr); + break; } ptr += rec->size; |