mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-04-29 05:11:07 +08:00
LAB 4 IS DONE.
This commit is contained in:
10
lab/user/faultreadkernel.c
Normal file
10
lab/user/faultreadkernel.c
Normal file
@@ -0,0 +1,10 @@
|
||||
// buggy program - faults with a read from kernel space
|
||||
|
||||
#include <inc/lib.h>
|
||||
|
||||
void
|
||||
umain(int argc, char **argv)
|
||||
{
|
||||
cprintf("I read %08x from location 0xf0100000!\n", *(unsigned*)0xf0100000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user