mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-02-10 06:14:58 +08:00
11 lines
195 B
C
11 lines
195 B
C
// 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);
|
|
}
|
|
|