Main Page   Compound List   File List   Compound Members   File Members  

noff.h

Go to the documentation of this file.
00001 /* noff.h 
00002  *     Data structures defining the Nachos Object Code Format
00003  *
00004  *     Basically, we only know about three types of segments:
00005  *      code (read-only), initialized data, and unitialized data
00006  */
00007 
00008 #define NOFFMAGIC       0xbadfad        /* magic number denoting Nachos 
00009                                          * object code file 
00010                                          */
00011 
00012 typedef struct segment {
00013   int virtualAddr;              /* location of segment in virt addr space */
00014   int inFileAddr;               /* location of segment in this file */
00015   int size;                     /* size of segment */
00016 } Segment;
00017 
00018 typedef struct noffHeader {
00019    int noffMagic;               /* should be NOFFMAGIC */
00020    Segment code;                /* executable code segment */ 
00021    Segment initData;            /* initialized data segment */
00022    Segment uninitData;          /* uninitialized data segment --
00023                                  * should be zero'ed before use 
00024                                  */
00025 } NoffHeader;

Generated on Mon Feb 10 09:54:46 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