329 |
|
|
330 |
|
#define BUILD_PPC_ROUTINE_DESCRIPTOR(procInfo, procedure) \ |
331 |
|
{ \ |
332 |
< |
0xAAFE, /* Mixed Mode A-Trap */ \ |
332 |
> |
htons(0xAAFE), /* Mixed Mode A-Trap */ \ |
333 |
|
7, /* version */ \ |
334 |
|
0, /* RD Flags - not dispatched */ \ |
335 |
|
0, /* reserved 1 */ \ |
338 |
|
0, /* number of routines */ \ |
339 |
|
{ /* It's an array */ \ |
340 |
|
{ /* It's a struct */ \ |
341 |
< |
(procInfo), /* the ProcInfo */ \ |
341 |
> |
htonl(procInfo), /* the ProcInfo */ \ |
342 |
|
0, /* reserved */ \ |
343 |
|
1, /* ISA and RTA */ \ |
344 |
< |
0 | /* Flags - it's absolute addr */\ |
344 |
> |
htons(0 | /* Flags - it's absolute addr */\ |
345 |
|
0 | /* It's prepared */ \ |
346 |
< |
4, /* Always use native ISA */ \ |
347 |
< |
(ProcPtr)(procedure), /* the procedure */ \ |
346 |
> |
4 ), /* Always use native ISA */ \ |
347 |
> |
(ProcPtr)htonl((uint32)procedure), /* the procedure */ \ |
348 |
|
0, /* reserved */ \ |
349 |
|
0 /* Not dispatched */ \ |
350 |
|
} \ |