Removed all instances of crash_prog()

crash_prog was introduced to force-crash a userspace program
since _exit may not yet be implemented. However, the new versions
of OS161 already have the exact same logic as crash_prog in stdlib/exit.
This commit is contained in:
Guru Prasad Srinivasa
2016-03-07 10:55:20 -05:00
parent a07a4b75c1
commit 2cb47cb4c8
9 changed files with 0 additions and 41 deletions

View File

@@ -54,11 +54,5 @@ main(int argc, char **argv)
(void) argv;
secprintf(SECRET, "Able was i ere i saw elbA", "/testbin/consoletest");
// Guru: Since exit() may not yet be implemented, just trigger a
// failure that the grading scripts expect to see.
tprintf("Accessing invalid memory location to trigger failure\n");
tprintf("%d", *((int *) 0xd34db33f));
return 0;
}