#include "copyright.h"#include "system.h"#include "syscall.h"Go to the source code of this file.
Functions | |
| void | ExceptionHandler (ExceptionType which) |
|
|
Definition at line 52 of file exception.cc. References ASSERT, DEBUG, ExceptionType, FALSE, SC_Halt, and SyscallException. Referenced by Machine::RaiseException.
00053 {
00054 int type = machine->ReadRegister(2);
00055
00056 if ((which == SyscallException) && (type == SC_Halt)) {
00057 DEBUG('a', "Shutdown, initiated by user program.\n");
00058 interrupt->Halt();
00059 } else {
00060 printf("Unexpected user mode exception %d %d\n", which, type);
00061 ASSERT(FALSE);
00062 }
00063 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002