Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

/users/u3/mtikir/PMaCInstrumentor_v1601/include/defines/RawSection.d

Go to the documentation of this file.
00001 /*
00002 ##################################################################
00003 XCOFF32     XCOFF64     Name     Description
00004 Offset     Length     Offset     Length
00005 0     4     0     4     e_addr.e_symndx+     Symbol table index for function
00006 4     1     8     1     e_lang+     Compiler language ID code
00007 5     1     9     1     e_reason+     Value 0 (exception reason code 0)
00008 Offset     Length     Offset     Length
00009 0     4     0     8     e_addr.e_paddr+     Address of the trap instruction
00010 4     1     8     1     e_lang+     Compiler language ID code
00011 5     1     9     1     e_reason+     Trap exception reason code
00012 +Use "32" or "64" suffix when __XCOFF_HYBRID__ is defined. With e_addr.e_paddr, the suffix is added to e_addr (i.e. e_addr32.e_paddr).
00013 ##################################################################
00014 */
00015 
00016 #define SECTRAW_IS_OF_TYPE_DECL(__str) inline bool is ## __str() { return header->is ## __str(); }
00017 
00018 #define SECTRAW_MACROS_BASIS(__str)  \
00019     SECTRAW_IS_OF_TYPE_DECL(TEXT); \
00020     SECTRAW_IS_OF_TYPE_DECL(DATA); \
00021     SECTRAW_IS_OF_TYPE_DECL(BSS); \
00022     SECTRAW_IS_OF_TYPE_DECL(PAD); \
00023     SECTRAW_IS_OF_TYPE_DECL(LOADER); \
00024     SECTRAW_IS_OF_TYPE_DECL(DEBUG); \
00025     SECTRAW_IS_OF_TYPE_DECL(TYPCHK); \
00026     SECTRAW_IS_OF_TYPE_DECL(EXCEPT); \
00027     SECTRAW_IS_OF_TYPE_DECL(OVRFLO); \
00028     SECTRAW_IS_OF_TYPE_DECL(INFO); \
00029 
00031 #define EXCEPTIONRAW_MACROS_BASIS(__str)  \
00032         GET_FIELD_BASIS(uint8_t,e_lang); \
00033         GET_FIELD_BASIS(uint8_t,e_reason); \
00034         GET_FIELD_BASIS_U(uint32_t,e_symndx,e_addr); \
00035         GET_FIELD_BASIS_U(uint64_t,e_paddr,e_addr); \
00036 
00038 #define EXCEPTIONRAW_MACROS_CLASS(__str)  \
00039         GET_FIELD_CLASS(uint8_t,e_lang); \
00040         GET_FIELD_CLASS(uint8_t,e_reason); \
00041         GET_FIELD_CLASS_U(uint32_t,e_symndx,e_addr); \
00042         GET_FIELD_CLASS_U(uint64_t,e_paddr,e_addr); \
00043 

Generated on Mon Jan 28 11:08:31 2008 for PMaCInstrumentor by doxygen 1.3.5