| 1 | #include "stubs_asm.h" |
|---|
| 2 | // not found correctly by finsig |
|---|
| 3 | |
|---|
| 4 | NHSTUB(AllocateUncacheableMemory, 0xFFC17288) // Calls j_malloc |
|---|
| 5 | NHSTUB(UpdateMBROnFlash, 0xFFC3F674) // Autodetect was too early |
|---|
| 6 | NHSTUB(qsort, 0xFFE1CC78) // Similar to SD990's qsort |
|---|
| 7 | |
|---|
| 8 | //Autofound Required! |
|---|
| 9 | NHSTUB(TurnOnBackLight,0xFFC68A90) //"TurnOnBackLight" string |
|---|
| 10 | NHSTUB(TurnOffBackLight,0xFFC68AA8) //"TurnOffBackLight" string |
|---|
| 11 | |
|---|
| 12 | NHSTUB(EnterToCompensationEVF,0xFFC15348) //Look for ExpOn |
|---|
| 13 | NHSTUB(ExitFromCompensationEVF,0xFFC1538C) //Look for ExpOff |
|---|
| 14 | |
|---|
| 15 | //NHSTUB(GetCurrentTargetDistance, 0xFFCCA6B4) // Sub uses "Error GetTargetDistanceResult" |
|---|
| 16 | NHSTUB(GetCurrentTargetDistance, 0xFFCF0434) // Yossar: changed to FFCF0434 |
|---|
| 17 | NHSTUB(VbattGet,0xFFC10644) // string, eventproc |
|---|
| 18 | |
|---|
| 19 | NHSTUB(vsprintf, 0xFFC0CBA0) // via eventproc_export_CPrintf (call before aCprintfSizeOve) |
|---|
| 20 | |
|---|
| 21 | NHSTUB(PostLogicalEventForNotPowerType, 0xFFC5D1F8) // string "PostLogicalEventForNotPowerType" |
|---|
| 22 | //NHSTUB(PT_PlaySound, 0xFFC47A78) |
|---|
| 23 | NHSTUB(PT_PlaySound, 0xFFC47764) |
|---|
| 24 | /* Similar to SD780. They said look for "LDRH R0, [R0]" |
|---|
| 25 | * Followed by LDR R1, [R1]. (True, but hard to search like that). |
|---|
| 26 | * I found by looking for "%Y/%m/%d %H:%M:%S" in the function _prior_ to this |
|---|
| 27 | */ |
|---|
| 28 | |
|---|
| 29 | NHSTUB(GetOpticalTemperature, 0xFFC33940) // Similar to SD780, which is also not certain. |
|---|
| 30 | // References Temperature.c and near GetBatteryTemperature |
|---|
| 31 | |
|---|
| 32 | NHSTUB(UnsetZoomForMovie, 0xFFD21B70) // string "ZoomCon_UnsetZoomForMovie" |
|---|
| 33 | |
|---|
| 34 | NHSTUB(LEDDrive, 0xFFC3043C) // string "LEDDrive" |
|---|
| 35 | NHSTUB(OpLog_Get, 0xFFC58590) // IDA eventproc_export_OpLog.Get |
|---|
| 36 | NHSTUB(WriteSDCard, 0xFFCE4118) // Similar to SD990, searched SdCon.c |
|---|
| 37 | NHSTUB(DoAFLock, 0xFFC47B8C) // Similar to SD990, AFL and AFL* strings |
|---|
| 38 | NHSTUB(UnlockAF, 0xFFC47B9C) // Similar to SD990, AFUL and AFUL* strings |
|---|
| 39 | |
|---|
| 40 | NHSTUB(PutInNdFilter, 0xFFDEADB0) // Yossar: edited |
|---|
| 41 | NHSTUB(PutOutNdFilter, 0xFFDEADD4) // Yossar: edited |
|---|
| 42 | |
|---|
| 43 | NHSTUB(kbd_p2_f, 0xFFC116B0) // Similar to SD780, PhySw+1C |
|---|
| 44 | NHSTUB(kbd_read_keys, 0xFFC11D80) // Look for LDR R0, =YYYY then, |
|---|
| 45 | // BL GetKbdState then LDR R0, =YYYY |
|---|
| 46 | |
|---|
| 47 | NHSTUB(kbd_read_keys_r2, 0xFFC30824) // autodetect basically right, just go to beginning of function |
|---|
| 48 | NHSTUB(strchr, 0xFFC6CAD4) // Similar to SD780. AND R2, R1, #0xFF then LDRB R1, [R0] |
|---|
| 49 | |
|---|
| 50 | NHSTUB(ScreenLock, 0xFFD64C2C) // aScreenlock |
|---|
| 51 | NHSTUB(ScreenUnLock, 0xFFD64C80) // sScreenunlock |
|---|
| 52 | NHSTUB(RefreshPhysicalScreen, 0xFFD64C80) // Same as ScreenUnLock |
|---|
| 53 | |
|---|
| 54 | NHSTUB(GetDrive_FreeClusters, 0xFFC3F874) // Similar to 990 based on callers |
|---|
| 55 | NHSTUB(GetDrive_TotalClusters, 0xFFC3F848) // Similar to 990, Above FreeClusters |
|---|
| 56 | NHSTUB(GetDrive_ClusterSize, 0xFFC3F81C) // Similar to 990, Above TotalClusters |
|---|
| 57 | |
|---|
| 58 | NHSTUB(kbd_pwr_off, 0xFFC00950) // SD1200 doesn't use |
|---|
| 59 | NHSTUB(kbd_pwr_on, 0xFFC00950) // SD1200 doesn't use |
|---|
| 60 | |
|---|
| 61 | // Don't exist in dryos |
|---|
| 62 | NHSTUB(Mount_FileSystem, 0xFFC00950) // NULLSUB |
|---|
| 63 | NHSTUB(Unmount_FileSystem, 0xFFC00950) // NULLSUB |
|---|
| 64 | NHSTUB(rewinddir, 0xFFC00950) // NULLSUB |
|---|
| 65 | NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00950) // NULLSUB |
|---|
| 66 | |
|---|
| 67 | // could not find |
|---|
| 68 | NHSTUB(GetFocusLensSubjectDistance, 0xFFC00950) // NULLSUB |
|---|
| 69 | NHSTUB(SetScriptMode, 0xFFC00950) //NULLSUB
|
|---|
| 70 |
|
|---|
| 71 | // Added by finsig_dryos V2 to match old values found by finsig.
|
|---|
| 72 | // Values should be checked in firmware, if the new address in stubs_entry.S
|
|---|
| 73 | // is correct then delete the correspoding entry below.
|
|---|
| 74 | NHSTUB(rename ,0xffc13d10) // New address = 0xffc13494
|
|---|
| 75 | NHSTUB(strrchr ,0xffc6cad0) // New address = 0xffd64ff8
|
|---|
| 76 | NHSTUB(write ,0xffc09b44) // New address = 0xffc13ce8
|
|---|