14 lines
258 B
C
14 lines
258 B
C
// buggy hello world 2 -- pointed-to region extends into unmapped memory
|
|
// kernel should destroy user environment in response
|
|
|
|
#include <inc/lib.h>
|
|
|
|
const char *hello = "hello, world\n";
|
|
|
|
void
|
|
umain(int argc, char **argv)
|
|
{
|
|
sys_cputs(hello, 1024*1024);
|
|
}
|
|
|