- Better ARM support
svn-id: r16174
This commit is contained in:
parent
374c427c61
commit
7a4f4889a9
28 changed files with 500 additions and 152 deletions
|
@ -5,17 +5,20 @@
|
|||
static void PnoInit(DmResID resID,PNOInitType *pnoP) {
|
||||
// Load and allocate PNO
|
||||
MemHandle armH = DmGetResource('ARMC', resID);
|
||||
MemPtr armP = MemHandleLock(armH);
|
||||
PnoLoad(&pnoP->pnoDesc, armP);
|
||||
MemPtrUnlock(armP);
|
||||
DmReleaseResource(armH);
|
||||
|
||||
// Init PNO
|
||||
PnoEntryHeader *header = (PnoEntryHeader *)ALIGN_4BYTE(pnoP->headerBuffer);
|
||||
pnoP->alignedHeader = header;
|
||||
if (armH) {
|
||||
MemPtr armP = MemHandleLock(armH);
|
||||
PnoLoad(&pnoP->pnoDesc, armP);
|
||||
MemPtrUnlock(armP);
|
||||
DmReleaseResource(armH);
|
||||
|
||||
// Init PNO
|
||||
PnoEntryHeader *header = (PnoEntryHeader *)ALIGN_4BYTE(pnoP->headerBuffer);
|
||||
pnoP->alignedHeader = header;
|
||||
|
||||
header->r10Value = pnoP->pnoDesc.r10Value;
|
||||
header->pnoMainAddress = pnoP->pnoDesc.pnoMainAddress;
|
||||
header->r10Value = pnoP->pnoDesc.r10Value;
|
||||
header->pnoMainAddress = pnoP->pnoDesc.pnoMainAddress;
|
||||
}
|
||||
}
|
||||
|
||||
void ARMInit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue