mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-04-23 18:29:59 +08:00
LAB 4 IS DONE.
This commit is contained in:
10
lab/user/softint.c
Normal file
10
lab/user/softint.c
Normal file
@@ -0,0 +1,10 @@
|
||||
// buggy program - causes an illegal software interrupt
|
||||
|
||||
#include <inc/lib.h>
|
||||
|
||||
void
|
||||
umain(int argc, char **argv)
|
||||
{
|
||||
asm volatile("int $14"); // page fault
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user