source: trunk/platform/g12/sub/100c/stubs_entry_2.S @ 1106

Revision 1106, 6.4 KB checked in by reyalP, 2 years ago (diff)

sx30 and g12 fixes from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg63231#msg63231

  • added new #define in camera.h for the (current) startup crash fix code (http://chdk.setepontos.com/index.php?topic=6179.0)
  • clean up old code in kbd.c for G12
  • updated battery min & max for G12
  • fixed Dark Frame Subtraction for G12 & SX30 (requires change in generic/capt_seq.c as well as camera specific capt_seq.c).
  • fixed some incorrect stub addresses for both cameras.
  • added code to lens_set_focus_pos (generic/wrappers.c) for G12 to stop it crashing if 'Continuous AF' enabled.
  • added startup crash fix code to open (generic/wrappers.c).
  • fixed AE lock in movie mode for G12 (MakeAFScan in generic/wrappers.c)
  • fixed SX30 value for KEYS_MASK0 and removed old code in kbd,c
  • removed old comments in platform/sx30/main.c
  • Property svn:eol-style set to native
RevLine 
[1008]1#include "stubs_asm.h"
2
3# Confirmed
4NHSTUB(qsort,                                                   0xFFB5FA2C)     // ok (comp s95)
5NHSTUB(strtol,                                                  0xFF840954)     // ok (comp sx30)
6NHSTUB(EnterToCompensationEVF,                  0xFF838D24)     // ok (comp sx30)
7NHSTUB(ExitFromCompensationEVF,                 0xFF838D68)     // ok (comp sx30)
8NHSTUB(GetBatteryTemperature,                   0xff868f80) // ok (comp sx30)
9NHSTUB(GetCCDTemperature,                               0xff868f0c)     // ok (comp sx30)
10NHSTUB(GetCurrentAvValue,                               0xff97fcb8)     // ok (comp sx30)
11NHSTUB(GetParameterData,                                0xFF9BECE4)     // ok (comp sx30)
12NHSTUB(GetZoomLensCurrentPoint,                 0xFF9819E0)     // ok (comp sx30)
13NHSTUB(GetZoomLensCurrentPosition,              0xFFAF6874)     // ok (comp sx30)
14NHSTUB(PT_PlaySound,                                    0xFF88A140)     // ok (comp sx30)
15NHSTUB(ReadFastDir,                                             0xFFAE2C14)     // ok (comp sx30)
16NHSTUB(readfastdir,                                             0xFFAE2C14) // alias for ReadFastDir
17NHSTUB(Remove,                                                  0xFF837114)     // ok (comp sx30)
18NHSTUB(SetParameterData,                                0xFF9BEBBC)     // ok (comp s95)
19NHSTUB(TurnOffBackLight,                                0xFF8ABD94)     // ok (comp sx30)
20NHSTUB(TurnOnBackLight,                                 0xFF8ABD7C)     // ok (comp sx30)
21NHSTUB(Lseek,                                                   0xFF8371FC)     // ok (comp sx30)
22NHSTUB(free,                                                    0xFF814244)     // ok (comp sx30)
23NHSTUB(ExitTask,                                                0xff81eb30)     // ok (comp sx30)
24NHSTUB(FreeUncacheableMemory,                   0xff83af70)     // ok (comp sx30)
25NHSTUB(GetDrive_ClusterSize,                    0xff876948)     // ok (comp sx30)
26NHSTUB(GetDrive_TotalClusters,                  0xff87697c)     // ok (comp sx30)
27NHSTUB(GetDrive_FreeClusters,                   0xFF8769A8)     // ok (comp sx30)
28NHSTUB(GetFocusLensSubjectDistance,             0xff97e348)     // ok (comp sx30)
29NHSTUB(GetFocusLensSubjectDistanceFromLens, 0xff97e794) // ok (comp sx30)
30NHSTUB(GetOpticalTemperature,                   0xff868ff4)     // ok (comp sx30)
31NHSTUB(GetPropertyCase,                                 0xff8954f0)     // ok (comp sx30)
32NHSTUB(GetSystemTime,                                   0xffb08d38)     // ok (comp sx30)
33NHSTUB(IsStrobeChargeCompleted,                 0xff8ea5f0)     // ok (comp sx30)
34NHSTUB(LockMainPower,                                   0xff89c204)     // ok (comp sx30)
35NHSTUB(MakeDirectory_Fut,                               0xff836acc)     // ok (comp sx30)
36NHSTUB(MoveFocusLensToDistance,                 0xffb71f98)     // ok (comp sx30)
37NHSTUB(MoveZoomLensWithPoint,                   0xffb05008)     // ok (comp sx30)
38NHSTUB(NewTaskShell,                                    0xff894f0c)     // ok (comp sx30)
[1106]39NHSTUB(Close,                                                   0xFF8370E0)     // ok (eventproc_export_Close)
40NHSTUB(Open,                                                    0xFF837074)     // wrapper for 'open' to give buffered/asynch I/O ?
41NHSTUB(open,                                                    0xFF81AADC)     //
[1008]42NHSTUB(PostLogicalEventForNotPowerType, 0xff899b70)     // ok (comp sx30)
43NHSTUB(PostLogicalEventToUI,                    0xff899bbc)     // ok (comp sx30)
44NHSTUB(RenameFile_Fut,                                  0xFF8369C4)     // ok (comp sx30)
45NHSTUB(rename,                                                  0xFF8369C4) // same as RenameFile_Fut
46NHSTUB(SetAutoShutdownTime,                             0xff89c278)     // ok (comp sx30)
47NHSTUB(SetCurrentCaptureModeType,               0xff8a4d44)     // ok (comp sx30)
48NHSTUB(SetFileTimeStamp,                                0xFF83737C)     // ok (comp sx30)
49NHSTUB(SetLogicalEventActive,                   0xff89bf40)     // ok (comp sx30)
50NHSTUB(SetPropertyCase,                                 0xff8953c8)     // ok (comp sx30)
51NHSTUB(SleepTask,                                               0xff83abb4)     // ok (comp sx30)
52NHSTUB(TakeSemaphore,                                   0xff83a87c)     // ok (comp sx30)
53NHSTUB(UnlockMainPower,                                 0xff89c158)     // ok (comp sx30)
54NHSTUB(VbattGet,                                                0xff833180)     // ok (comp sx30)
55NHSTUB(closedir,                                                0xFFAE2A70)     // ok (comp sx30)
56NHSTUB(closefastdir,                                    0xFFAE2A70) // same as closedir
57NHSTUB(kbd_p1_f,                                                0xff834a6c)     // ok (comp sx30)
58NHSTUB(kbd_p1_f_cont,                                   0xff834a78)     // ok (comp sx30)
59NHSTUB(kbd_read_keys,                                   0xFF8349F4)     // ok (comp sx30)
60NHSTUB(kbd_p2_f,                                                0xff8342bc)     // ok (comp sx30)
61NHSTUB(kbd_read_keys_r2,                                0xFF864D8C)     // ok (comp sx30)
62NHSTUB(lseek,                                                   0xFF8371FC) // same as Lseek
63NHSTUB(mkdir,                                                   0xff83757c)     // ok (comp sx30)
64NHSTUB(opendir,                                                 0xffae2ac0)     // ok (comp sx30)
65NHSTUB(openfastdir,                                             0xffae2ac0) // same as opendir
66NHSTUB(reboot_fw_update,                                0xffae8034)     // ok (comp sx30)
67NHSTUB(strcat,                                                  0xFF8B5328)     // ok (comp sx30)
68NHSTUB(strchr,                                                  0xff8140b4)     // ok (comp sx30)
69NHSTUB(strlen,                                                  0xFF814100)     // ok (comp sx30)
70NHSTUB(strncpy,                                                 0xff81402c)     // ok (comp sx30)
71NHSTUB(strrchr,                                                 0xFF8140D8)     // ok (comp sx30)
72NHSTUB(time,                                                    0xff88f66c)     // ok (comp sx30)
73NHSTUB(MakeAFScan,                                              0xFF98AA04)     // ok (comp s95)
[1106]74NHSTUB(ExpCtrlTool_StopContiAE,                 0xFF8475EC)     // ok ?
75NHSTUB(ExpCtrlTool_StartContiAE,                0xFF847454)     // ok ?
[1008]76NHSTUB(UnsetZoomForMovie,                               0xFF9C57D0)     // ok (comp s95)
[1017]77NHSTUB(LEDDrive,                                                0xFF8647EC)     // ok (comp sx30)
[1008]78NHSTUB(SetScriptMode,                                   0xFF89BF90)     // ok (comp sx30)
79NHSTUB(UnlockAndRefresh,                                0xFF8B3A68)     // ok (comp sx30)
80NHSTUB(RefreshPhysicalScreen,                   0xFF8B3A68) // alias for UnlockAndRefresh
81NHSTUB(LockAndRefresh,                              0xFF8B50E4) // ok (comp sx30)
82NHSTUB(ScreenLock,                                              0xFF8B4C98)     // ??? S95
83NHSTUB(ScreenUnlock,                                    0xFF8B4CFC)     // ??? S95
84NHSTUB(apex2us,                                                 0xFFA5C23C)     // ok (comp sx30)
85NHSTUB(WriteSDCard,                                             0xFF96E820)     // ok (comp sx30)
86NHSTUB(GetKbdState,                                             0xFF865678)     // ok (called in kbd_read_keys)
87NHSTUB(UnlockAF,                                                0xFF838978)     // ok (comp sx30)
88NHSTUB(DoAFLock,                                                0xFF838940)     // ok (comp sx30)
89NHSTUB(GetImageFolder,                                  0xFF95F2FC)     // function before 'GetCameraObjectTmpPath ERROR' string
90NHSTUB(UpdateMBROnFlash,                                0xFF8767C8) // Search for 'BOOTDISK', function branches to this at end (after setting up R0,R1,R2)
[1024]91NHSTUB(exmem_alloc,                                             0xFF88FFD8)     // search for ExMem.AllocCacheable (from reyalp)
[1086]92NHSTUB(PutInNdFilter,                   0xFFB04E6C)
93NHSTUB(PutOutNdFilter,                  0xFFB04E90)
[1008]94
95# From stubs_entry_ida.s
[1028]96NHSTUB(eventproc_export_PostLogicalEventToUI, 0xff899bbc)
97NHSTUB(eventproc_export_SleepTask, 0xff83abb4)
98NHSTUB(eventproc_export_ExitTask, 0xff81eb30)
99NHSTUB(eventproc_export_TakeSemaphore, 0xff83a87c)
100NHSTUB(eventproc_export_HardwareDefect, 0xff89c4a8)
[1008]101
[1026]102# Misc - needs a stub anyway, to far for B/BL
[1028]103NHSTUB(DebugAssert,                                             0xFF81EB78)
104NHSTUB(PT_GetPropertyCaseString,                        0xFF8954F0)
105NHSTUB(takeSemaphore,                                           0xFF83AD5C)
106NHSTUB(err_init_task,                                           0xFF815FD4)
[1008]107
108# Addresses for firmware task handlers (used in taskHook)
109DEF(task_CaptSeq,                                               0xFF88261C)
110DEF(task_InitFileModules,                               0xFF89FC7C)
111DEF(task_RotaryEncoder,                                 0xFF8657EC)
112DEF(task_MovieRecord,                                   0xFF987088)
113DEF(task_ExpDrv,                                                0xFF8CC0D0)
114
115# Missing
116NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95
117NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95
118NSTUB(rand,                                                             0xFF810B1C) // ??? could not find use C version from S95 wrappers
119NSTUB(srand,                                                    0xFF810B1C) // ??? could not find use C version from S95 wrappers
120NHSTUB(UIFS_WriteFirmInfoToFile,                0xFF810B1C)     // Is this needed?
121NHSTUB(rewinddir,                                               0xFF810B1C)
122NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C)
123NHSTUB(Unmount_FileSystem,                              0xFF810B1C)
124NHSTUB(Mount_FileSystem,                                0xFF810B1C)
Note: See TracBrowser for help on using the repository browser.