mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-04-28 12:50:48 +08:00
LAB 4 IS DONE.
This commit is contained in:
11
lab/user/buggyhello.c
Normal file
11
lab/user/buggyhello.c
Normal file
@@ -0,0 +1,11 @@
|
||||
// buggy hello world -- unmapped pointer passed to kernel
|
||||
// kernel should destroy user environment in response
|
||||
|
||||
#include <inc/lib.h>
|
||||
|
||||
void
|
||||
umain(int argc, char **argv)
|
||||
{
|
||||
sys_cputs((char*)1, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user