jos/user/evilhello.c
Anish Athalye a9d7717cc4 Lab 3
2018-09-25 12:22:51 -04:00

13 lines
272 B
C

// evil hello world -- kernel pointer passed to kernel
// kernel should destroy user environment in response
#include <inc/lib.h>
void
umain(int argc, char **argv)
{
// try to print the kernel entry point as a string! mua ha ha!
sys_cputs((char*)0xf010000c, 100);
}