summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-06-26 20:31:52 +0000
committerrtm <rtm>2006-06-26 20:31:52 +0000
commitb61c2547b8b489cab16984c0940a1cb6593a2a3d (patch)
tree3ff33920d08b6221ec32b7aaff583a32edc8001b /trap.c
parenta44ee3cde8b55c314410210b9f3076797b9925fc (diff)
downloadxv6-labs-b61c2547b8b489cab16984c0940a1cb6593a2a3d.tar.gz
xv6-labs-b61c2547b8b489cab16984c0940a1cb6593a2a3d.tar.bz2
xv6-labs-b61c2547b8b489cab16984c0940a1cb6593a2a3d.zip
system call return values
initialize 2nd cpu's idt
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/trap.c b/trap.c
index 33d7be1..0cd4958 100644
--- a/trap.c
+++ b/trap.c
@@ -14,7 +14,7 @@ extern void trapenter();
extern void trapenter1();
void
-tinit()
+tvinit()
{
int i;
@@ -22,6 +22,11 @@ tinit()
SETGATE(idt[i], 1, SEG_KCODE << 3, vectors[i], 0);
}
SETGATE(idt[T_SYSCALL], T_SYSCALL, SEG_KCODE << 3, vectors[48], 3);
+}
+
+void
+idtinit()
+{
asm volatile("lidt %0" : : "g" (idt_pd.pd_lim));
}