339 |
|
Mac_memset(desc, 0, sizeof(RoutineDescriptor)); |
340 |
|
WriteMacInt16(desc + offsetof(RoutineDescriptor, goMixedModeTrap), 0xAAFE); |
341 |
|
WriteMacInt8 (desc + offsetof(RoutineDescriptor, version), 7); |
342 |
< |
WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords[0].procInfo), procInfo); |
343 |
< |
WriteMacInt8 (desc + offsetof(RoutineDescriptor, routineRecords[0].ISA), 1); |
344 |
< |
WriteMacInt16(desc + offsetof(RoutineDescriptor, routineRecords[0].routineFlags), 0 | 0 | 4); |
345 |
< |
WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords[0].procDescriptor), procedure); |
342 |
> |
WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, procInfo), procInfo); |
343 |
> |
WriteMacInt8 (desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, ISA), 1); |
344 |
> |
WriteMacInt16(desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, routineFlags), 0 | 0 | 4); |
345 |
> |
WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, procDescriptor), procedure); |
346 |
|
} |
347 |
|
}; |
348 |
|
|