From 32b99169a56aa18047039092856a744d0e3d2d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Mon, 15 Feb 2021 13:08:19 +0200 Subject: mb/amd,google/zork: Move init_tables() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The semantics of pirq_setup() from previous platforms was to only setup the global pointers for PIC and APIC tables, not to create or modify the tables themselves. Change-Id: Iaa7c31eed21432dc2b3fe6b32803bd2658fd5e2d Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/50717 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Felix Held --- src/mainboard/google/zork/mainboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/google/zork') diff --git a/src/mainboard/google/zork/mainboard.c b/src/mainboard/google/zork/mainboard.c index 1558245773..06f4e8dda1 100644 --- a/src/mainboard/google/zork/mainboard.c +++ b/src/mainboard/google/zork/mainboard.c @@ -104,7 +104,6 @@ static void init_tables(void) /* PIRQ Setup */ static void pirq_setup(void) { - init_tables(); intr_data_ptr = fch_apic_routing; picr_data_ptr = fch_pic_routing; } @@ -202,6 +201,7 @@ static void zork_enable(struct device *dev) { printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); + init_tables(); /* Initialize the PIRQ data structures for consumption */ pirq_setup(); -- cgit v1.2.3