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
/
ucla
/
src
/
lab4
/
user
/
evilhello.c
blob
a5d4aabeb3f4509ae82d16946048ada1f714a72b
1
// evil hello world -- kernel pointer passed to kernel
2
// kernel should destroy user environment in response
3
4
#include <inc/lib.h>
5
6
asmlinkage
void
7
umain
(
int
argc
,
char
**
argv
)
8
{
9
// try to print the kernel entry point as a string! mua ha ha!
10
sys_cputs
((
char
*)
0xf010000c
,
100
);
11
}
12