summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/trap.c b/trap.c
index 693c596..929f761 100644
--- a/trap.c
+++ b/trap.c
@@ -19,12 +19,14 @@ extern int devintr();
void
trapinit(void)
{
- int i;
+ initlock(&tickslock, "time");
+}
- // set up to take exceptions and traps while in the kernel.
+// set up to take exceptions and traps while in the kernel.
+void
+trapinithart(void)
+{
w_stvec((uint64)kernelvec);
-
- initlock(&tickslock, "time");
}
//