X-Git-Url: https://git.saurik.com/apple/bootx.git/blobdiff_plain/95a2ba82e233948c3dc301b3ba52f10963349a6c..HEAD:/bootx.tproj/sl.subproj/macho.c diff --git a/bootx.tproj/sl.subproj/macho.c b/bootx.tproj/sl.subproj/macho.c index 9fb35aa..333cbe1 100644 --- a/bootx.tproj/sl.subproj/macho.c +++ b/bootx.tproj/sl.subproj/macho.c @@ -27,6 +27,7 @@ * DRI: Josh de Cesare */ +#define __srr0 srr0 // so we can build in both (conformant/not) worlds #include #include #include @@ -208,11 +209,11 @@ static long DecodeSegment(long cmdBase) static long DecodeUnixThread(long cmdBase) { - struct ppc_thread_state *ppcThreadState; + ppc_thread_state_t *ppcThreadState; // The PPC Thread State starts after the thread command stuct plus, // 2 longs for the flaver an num longs. - ppcThreadState = (struct ppc_thread_state *) + ppcThreadState = (ppc_thread_state_t *) (cmdBase + sizeof(struct thread_command) + 8); gKernelEntryPoint = ppcThreadState->srr0;