exec_bout.h Source File
Back to the index.
Go to the documentation of this file.
70 #define BOUT_BMAGIC 0415
74 #define BOUT_OMAGIC 0407
75 #define BOUT_NMAGIC 0410
76 #define BOUT_ZMAGIC 0413
118 #define N_MAGIC(x) ((x).a_magic)
119 #define N_BADMAG(x) (((x).a_magic)!=BOUT_BMAGIC)
120 #define N_TXTOFF(x) ( sizeof(struct exec) )
121 #define N_DATOFF(x) ( N_TXTOFF(x) + (x).a_text )
122 #define N_TROFF(x) ( N_DATOFF(x) + (x).a_data )
123 #define N_DROFF(x) ( N_TROFF(x) + (x).a_trsize )
124 #define N_SYMOFF(x) ( N_DROFF(x) + (x).a_drsize )
125 #define N_STROFF(x) ( N_SYMOFF(x) + (x).a_syms )
126 #define N_CCINFO ( 0x17 )
127 #define N_HAS_CCINFO(x) (((x).a_ccinfo)==N_CCINFO)
188 #define N_ORDINARY ((unsigned) 0)
190 #define N_BALNAME ((unsigned) 0xfe)
191 #define N_CALLNAME ((unsigned) 0xff)
193 #define MASK( V ) ((sizeof(V) == 1) ? 0x000000ff :\
194 ((sizeof(V) == 2) ? 0x0000ffff :\
198 #define GET_UBITS( V ) ((unsigned) (V & MASK( V )))
200 #define IS_ORDINARY(x) (GET_UBITS(x) == N_ORDINARY)
201 #define IS_CALLNAME(x) (GET_UBITS(x) == N_CALLNAME)
202 #define IS_BALNAME(x) (GET_UBITS(x) == N_BALNAME)
203 #define IS_SYSPROCIDX(x) (GET_UBITS(x) > N_ORDINARY &&\
204 GET_UBITS(x) < N_BALNAME)
238 #endif // EXEC_B_OUT_H
Generated on Tue Mar 24 2020 14:04:48 for GXemul by
1.8.17