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:
parent
bf83098f80
commit
354d77a6bd
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue