Add a architecture specific function, arch_write_tables(), that allows an architecture to add its required tables for booting. This callback helps write_tables() to be de-duplicated. Change-Id: I805c2f166b1e75942ad28b6e7e1982d64d2d5498 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14435 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
20 lines
542 B
C
20 lines
542 B
C
#ifndef BOOT_TABLES_H
|
|
#define BOOT_TABLES_H
|
|
|
|
#include <boot/coreboot_tables.h>
|
|
|
|
/*
|
|
* Write architecture specific tables as well as the common
|
|
* coreboot table.
|
|
*/
|
|
void write_tables(void);
|
|
|
|
/*
|
|
* Allow per-architecture table writes called from write_tables(). The
|
|
* coreboot_table parameter provides a reference to where the coreboot
|
|
* table will be written. The parameter is to allow architectures to
|
|
* provide a forwarding table to real coreboot table.
|
|
*/
|
|
void arch_write_tables(uintptr_t coreboot_table);
|
|
|
|
#endif /* BOOT_TABLES_H */
|