jos/user/faultreadkernel.c

11 lines
195 B
C
Raw Normal View History

2018-09-25 09:22:51 -07:00
// 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);
}