repo.or.cz
/
mascara-docs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* more re-work
[mascara-docs.git]
/
i386
/
junos
/
MIT
/
course
/
src
/
src.lab
/
user
/
faultreadkernel.c
blob
79057a139273c030141694142bb2911d842f3ef6
1
// buggy program - faults with a read from kernel space
2
3
#include <inc/lib.h>
4
5
void
6
umain
(
int
argc
,
char
**
argv
)
7
{
8
cprintf
(
"I read %08x from location 0xf0100000!
\n
"
, *(
unsigned
*)
0xf0100000
);
9
}
10