1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add pseudo handler for debugging

This commit is contained in:
Stefan Lankes 2017-06-15 13:11:20 +02:00
parent bf83098f80
commit 354d77a6bd

View file

@ -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);