From 354d77a6bd6c341477144b9f9b29ce4de2cccf9b Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Thu, 15 Jun 2017 13:11:20 +0200 Subject: [PATCH] add pseudo handler for debugging --- arch/x86/kernel/apic.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);