aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/PalmOS/Src/init_arm.cpp35
-rw-r--r--backends/PalmOS/Src/init_arm.h7
2 files changed, 0 insertions, 42 deletions
diff --git a/backends/PalmOS/Src/init_arm.cpp b/backends/PalmOS/Src/init_arm.cpp
deleted file mode 100644
index 39713f9a9f..0000000000
--- a/backends/PalmOS/Src/init_arm.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <PalmOS.h>
-#include "globals.h"
-#include "init_arm.h"
-
-static void PnoInit(DmResID resID, PNOInitType *pnoP) {
- // Load and allocate PNO
- MemHandle armH = DmGetResource('ARMC', resID);
-
- 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;
- }
-}
-
-void ARMInit() {
- // init global ARM only
- MemSet(gVars->arm, sizeof(gVars->arm), 0);
- PnoInit(RSC_ARMCOMMON, &ARM(ARM_COMMON));
- PnoInit(RSC_ARMENGINE, &ARM(ARM_ENGINE));
-}
-
-void ARMRelease() {
- PnoUnload(&ARM(ARM_ENGINE).pnoDesc);
- PnoUnload(&ARM(ARM_COMMON).pnoDesc);
- MemSet(gVars->arm, sizeof(gVars->arm), 0);
-}
diff --git a/backends/PalmOS/Src/init_arm.h b/backends/PalmOS/Src/init_arm.h
deleted file mode 100644
index 348405035d..0000000000
--- a/backends/PalmOS/Src/init_arm.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef INIT_ARM_H
-#define INIT_ARM_H
-
-void ARMInit();
-void ARMRelease();
-
-#endif