1
0
Fork 0

x86: avoid early crash in disable_local_APIC()

E.g. when called due to an early panic.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
hifive-unleashed-5.1
Jan Beulich 2009-01-14 12:28:51 +00:00 committed by Ingo Molnar
parent 5cca0cf15a
commit 4a13ad0bd8
1 changed files with 4 additions and 0 deletions

View File

@ -895,6 +895,10 @@ void disable_local_APIC(void)
{
unsigned int value;
/* APIC hasn't been mapped yet */
if (!apic_phys)
return;
clear_local_APIC();
/*