mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-02-03 02:53:21 +08:00
11 lines
138 B
C
11 lines
138 B
C
// buggy program - faults with a write to location zero
|
|
|
|
#include <inc/lib.h>
|
|
|
|
void
|
|
umain(int argc, char **argv)
|
|
{
|
|
*(unsigned*)0 = 0;
|
|
}
|
|
|