diff options
author | rtm <rtm> | 2006-06-26 20:31:52 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-06-26 20:31:52 +0000 |
commit | b61c2547b8b489cab16984c0940a1cb6593a2a3d (patch) | |
tree | 3ff33920d08b6221ec32b7aaff583a32edc8001b /trap.c | |
parent | a44ee3cde8b55c314410210b9f3076797b9925fc (diff) | |
download | xv6-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)); } |