diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-04 09:57:18 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-11-05 14:58:45 +0800 |
commit | 38e498c3a2b5b52e7935516cba0927e0d90c365c (patch) | |
tree | fe31ec366ac573b57b44f0f15d2031c565a50622 /arch/x86/include | |
parent | 653554b40aa5c1d32e9a6281dc97f1b75eff724b (diff) | |
download | u-boot-38e498c3a2b5b52e7935516cba0927e0d90c365c.zip u-boot-38e498c3a2b5b52e7935516cba0927e0d90c365c.tar.gz u-boot-38e498c3a2b5b52e7935516cba0927e0d90c365c.tar.bz2 |
x86: Allow writing tables to fail
At present write_tables() can fail but does not report this problem to its
caller. Fix this by changing the return type.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/tables.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/tables.h b/arch/x86/include/asm/tables.h index f7c72ed..bf66e79 100644 --- a/arch/x86/include/asm/tables.h +++ b/arch/x86/include/asm/tables.h @@ -49,8 +49,10 @@ void table_fill_string(char *dest, const char *src, size_t n, char pad); * This writes x86 configuration tables, including PIRQ routing table, * Multi-Processor table and ACPI table. Whether a specific type of * configuration table is written is controlled by a Kconfig option. + * + * @return 0 if OK, -ENOSPC if table too large */ -void write_tables(void); +int write_tables(void); /** * write_pirq_routing_table() - Write PIRQ routing table |