diff options
author | Martin Roth <gaumless@gmail.com> | 2022-11-03 18:20:17 -0600 |
---|---|---|
committer | Fred Reitberger <reitbergerfred@gmail.com> | 2022-11-08 14:51:02 +0000 |
commit | 37ccb2ce82d1c4782356a569737dd72bf9478db0 (patch) | |
tree | 87627e6332e763b55f03e2d87f78fc325d0e73be /src/arch | |
parent | 605f793af84733eda416533ccf5b220c0f5a171b (diff) |
arch/x86 & commonlib: Add macros for postcodes used in x86/tables
The 0x9a, 0x9b, and 0x9c postcodes are not used anywhere else in the
coreboot tree other than in arch/x86/tables.c. Add macros to
standardize these postcodes.
Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I16be65ffa3f0b253fe4a9bb7bfb97597a760ad3f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69200
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/tables.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/tables.c b/src/arch/x86/tables.c index 5940c64eba..b4b97b4677 100644 --- a/src/arch/x86/tables.c +++ b/src/arch/x86/tables.c @@ -17,7 +17,7 @@ static unsigned long write_pirq_table(unsigned long rom_table_end) unsigned long high_table_pointer; #define MAX_PIRQ_TABLE_SIZE (4 * 1024) - post_code(0x9a); + post_code(POST_X86_WRITE_PIRQ_TABLE); /* This table must be between 0x0f0000 and 0x100000 */ rom_table_end = write_pirq_routing_table(rom_table_end); @@ -49,7 +49,7 @@ static unsigned long write_mptable(unsigned long rom_table_end) unsigned long high_table_pointer; #define MAX_MP_TABLE_SIZE (4 * 1024) - post_code(0x9b); + post_code(POST_X86_WRITE_MPTABLE); /* The smp table must be in 0-1K, 639K-640K, or 960K-1M */ rom_table_end = write_smp_table(rom_table_end); @@ -78,7 +78,7 @@ static unsigned long write_acpi_table(unsigned long rom_table_end) unsigned long high_table_pointer; const size_t max_acpi_size = CONFIG_MAX_ACPI_TABLE_SIZE_KB * KiB; - post_code(0x9c); + post_code(POST_X86_WRITE_ACPITABLE); /* Write ACPI tables to F segment and high tables area */ |