diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index 7b7aac0f3..dc401bcc4 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c @@ -1084,13 +1084,18 @@ void shutdown_system(void) } } -static void apic_shutdown(struct state * s) +static void apic_shutdown(struct state* s) { go_down = 1; LOG_DEBUG("Receive shutdown interrupt\n"); } +static void apic_wakeup(struct state* s) +{ + LOG_DEBUG("Receive wakeup interrupt\n"); +} + int apic_init(void) { int ret; @@ -1100,6 +1105,7 @@ int apic_init(void) return ret; // set APIC error handler + irq_install_handler(121, apic_wakeup); irq_install_handler(126, apic_err_handler); #if MAX_CORES > 1 irq_install_handler(80+32, apic_tlb_handler);