mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
653554b40a
commit
38e498c3a2
3 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue