summaryrefslogtreecommitdiff
path: root/arch/x86/machine/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/machine/trap.c')
-rw-r--r--arch/x86/machine/trap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/machine/trap.c b/arch/x86/machine/trap.c
index 1580fa53..878f20c9 100644
--- a/arch/x86/machine/trap.c
+++ b/arch/x86/machine/trap.c
@@ -171,7 +171,7 @@ trap_default(struct trap_frame *frame)
cpu_halt();
}
-void __init
+static int __init
trap_setup(void)
{
size_t i;
@@ -213,8 +213,12 @@ trap_setup(void)
trap_install(TRAP_LAPIC_TIMER, TRAP_HF_INTR, lapic_timer_intr);
trap_install(TRAP_LAPIC_ERROR, TRAP_HF_INTR, lapic_error_intr);
trap_install(TRAP_LAPIC_SPURIOUS, TRAP_HF_INTR, lapic_spurious_intr);
+
+ return 0;
}
+INIT_OP_DEFINE(trap_setup);
+
void
trap_main(struct trap_frame *frame)
{