x86: Refactor table-writing code a little
authorSimon Glass <sjg@chromium.org>
Sun, 16 Jul 2023 03:39:09 +0000 (21:39 -0600)
committerBin Meng <bmeng@tinylab.org>
Mon, 17 Jul 2023 09:12:26 +0000 (17:12 +0800)
commit8856d613cb79876e1b1e1ef01b7507725810b7c5
tree70e42c68634fb434b46182f524107e3adef8a084
parent24e7c3e9fcb7cb1987456140fd57ae390be3f645
x86: Refactor table-writing code a little

The implementation of write_tables() is confusing because it uses the
rom_table_start variable as the address pointer as it progresses.

Rename it to rom_addr to make the code clearer. Move the rom_table_end
variable into the block where it is used.

Also update logging to use the ACPI category, now that it is available.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/tables.c