Main Page   Compound List   File List   Compound Members   File Members  

exception.cc File Reference

#include "copyright.h"
#include "system.h"
#include "syscall.h"

Go to the source code of this file.

Functions

void ExceptionHandler (ExceptionType which)


Function Documentation

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 }


Generated on Mon Feb 10 09:54:49 2003 for nachos by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees