Commit 4a13ad0b authored by Jan Beulich's avatar Jan Beulich Committed by Ingo Molnar

x86: avoid early crash in disable_local_APIC()

E.g. when called due to an early panic.
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5cca0cf1
...@@ -895,6 +895,10 @@ void disable_local_APIC(void) ...@@ -895,6 +895,10 @@ void disable_local_APIC(void)
{ {
unsigned int value; unsigned int value;
/* APIC hasn't been mapped yet */
if (!apic_phys)
return;
clear_local_APIC(); clear_local_APIC();
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment