11 lines
178 B
C
11 lines
178 B
C
|
// buggy program - faults with a read from location zero
|
||
|
|
||
|
#include <inc/lib.h>
|
||
|
|
||
|
void
|
||
|
umain(int argc, char **argv)
|
||
|
{
|
||
|
cprintf("I read %08x from location 0!\n", *(unsigned*)0);
|
||
|
}
|
||
|
|