Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC System Software /
Chapter 4 - Exception Manager / Exception Manager Reference
Constants


Memory Reference Kinds

For each memory-related exception, the Exception Manager returns a memory exception record. The theReference field of that record contains a memory reference code that indicates the kind of memory operation that caused the exception.

enum {
   /*memory reference codes*/
   writeReference                = 0,     /*write operation*/
   readReference                 = 1,     /*read operation*/
   fetchReference                = 2      /*fetch operation*/
};
Constant descriptions

writeReference
The operation was an attempt to write data to memory.
readReference
The operation was an attempt to read data from memory.
fetchReference
The operation was an attempt to fetch a processor instruction. (Not all processors are able to distinguish read operations from fetch operations. As a result, fetch operation failures might instead be reported as failed read operations.)

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996