aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/x86/lapic
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2017-10-26 16:14:09 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2017-10-31 02:21:35 +0000
commitc68d410ef7bc98abb1f602473569294e3d6828a4 (patch)
tree4c3bb51ba36992ad44b0262c528a5e1b96ef8755 /src/cpu/x86/lapic
parent8db7f8bad7b3f3634f6cab7dede42514c692b8b0 (diff)
x86/lapic: Use the existing lapicid() function
coreboot has a lapicid() function, so use it. Change-Id: I7f536c229f271674c34d722b5db96ce665b720f1 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/22192 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/cpu/x86/lapic')
-rw-r--r--src/cpu/x86/lapic/lapic_cpu_init.c2
1 files changed, 1 insertions, 1 deletions
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);