From c68d410ef7bc98abb1f602473569294e3d6828a4 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Thu, 26 Oct 2017 16:14:09 -0600 Subject: x86/lapic: Use the existing lapicid() function coreboot has a lapicid() function, so use it. Change-Id: I7f536c229f271674c34d722b5db96ce665b720f1 Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/22192 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin --- src/cpu/x86/lapic/lapic_cpu_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c index 898a5c476a..825739c6df 100644 --- a/src/cpu/x86/lapic/lapic_cpu_init.c +++ b/src/cpu/x86/lapic/lapic_cpu_init.c @@ -351,7 +351,7 @@ void stop_this_cpu(void) unsigned long send_status; unsigned long id; - id = lapic_read(LAPIC_ID) >> 24; + id = lapicid(); printk(BIOS_DEBUG, "CPU %ld going down...\n", id); -- cgit v1.2.3