source: trunk/platform/g12/sub/100g/stubs_entry.S @ 1391

Revision 1391, 13.7 KB checked in by philmoz, 20 months ago (diff)

Update to dryos signature finder.

  • Add NEED_ENCODED_DISKBOOT and KEYSYS values to stubs_entry.S
  • New section for above value (and PLATFORMID and MAXRAMADDR)
  • Moved dancingbits array to dancingbits.h since it is also now used in finsig_dryos.c.
  • Property svn:eol-style set to native
RevLine 
[1332]1// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
2#include "stubs_asm.h"
3
4// Camera info:
[1391]5//   DRYOS R45 (DRYOS version 2.3, release #0045)
6//   Firmware Ver GM1.00G
7//   Canon PowerShot G12
[1332]8
[1391]9// Values for makefile.inc
10//   PLATFORMID = 12815 (0x320f) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4b                // Found @ 0xffff36ac
13//   NEED_ENCODED_DISKBOOT = 5   // Found @ 0xffff36bc
14
[1332]15// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
16//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
17//NSTUB(kbd_pwr_off                           ,0xff865690) //  2 60%    *** != 0xff810b1c
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xff810b1c
19
20// Check of modemap from 'platform/CAMERA/shooting.c':
21// Firmware modemap table found @ff89fdf0 -> ff89c600 -> ff9bd794 -> ffb1ee44 -> ffc896dc
22// No problems found with modemap table.
23
24// Values below go in 'stubs_min.S':
25//DEF(physw_status                            ,0x00034474) // Found @0xff8349f4,          stubs_min = 0x00034474 (0x34474)
26//DEF(physw_run                               ,0x00001c3c) // Found @0xff8345f0,          stubs_min = 0x00001c3c (0x1C30+0xC)
27//DEF(levent_table                            ,0xffc0c01c) // Found @0xffc0c01c,          stubs_min = 0xffc0c01c (0xffc0c01c)
28//DEF(FlashParamsTable                        ,0xffc898ec) // Found @0xffc898ec,          stubs_min = 0xffc898ec (0xffc898ec)
29//DEF(movie_status                            ,0x000072d4) // Found @0xff986d88,          stubs_min = 0x000072d4 (0x7290+0x44)
30//DEF(full_screen_refresh                     ,0x0000a5dc) // Found @0xffa53cb4,          stubs_min = 0x0000a5dc (0xA5DC)
31//DEF(canon_menu_active                       ,0x00003214) // Found @0xff896098,          stubs_min = 0x00003214 (0x3210+4)
32//DEF(canon_shoot_menu_active                 ,0x00008afd) // Found @0xff9dc738,          stubs_min = 0x00008afd (0x8AFC+1)
33//DEF(playrec_mode                            ,0x00002f38) // Found @0xff8880f0,          stubs_min = 0x00002f38 (0x2F34+0x4)
34//DEF(zoom_status                             ,0x0000e590) // Found @0xffb2290c,          stubs_min = 0x0000e590 (0xE590)
35//DEF(some_flag_for_af_scan                   ,0x000076b4) // Found @0xff98a814,          stubs_min = 0x000076b4 (0x76B4)
36
37// Values below go in 'lib.c':
38//void *vid_get_bitmap_fb()        { return (void*)0x40471000; } // Found @0xff85ea60
39//void *vid_get_viewport_fb()      { return (void*)0x40587700; } // Found @0xffb75704
40//char *camera_jpeg_count_str()    { return (char*)0x000bb618; } // Found @0xffa43614
41//long hook_raw_size()             { return 0x00ee9200; }        // Found @0xffb78bc4
42//int get_flash_params_count(void) { return 0x9a; }              // Found @0xff9bed2c
43
44// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
45//#define SD_READONLY_FLAG    0x00020000 // Found @0xffbb95d4, levent 0x90a
46//#define SD_READONLY_IDX     2
47//#define USB_FLAG            0x04000000 // Found @0xffbb9604, levent 0x902
48//#define USB_IDX             2
49
50// Keymap values for kbd.c. Additional keys may be present, only common values included here.
51//static KeyMap keymap[] = {
52//    { 0, KEY_ZOOM_IN     ,0x00000020 }, // Found @0xffbb94dc, levent 0x02
53//    { 0, KEY_ZOOM_OUT    ,0x00000800 }, // Found @0xffbb950c, levent 0x03
54//    { 0, KEY_LEFT        ,0x00001000 }, // Found @0xffbb9514, levent 0x06
55//    { 0, KEY_SET         ,0x00002000 }, // Found @0xffbb951c, levent 0x08
56//    { 0, KEY_RIGHT       ,0x00004000 }, // Found @0xffbb9524, levent 0x07
57//    { 0, KEY_DOWN        ,0x00008000 }, // Found @0xffbb952c, levent 0x05
58//    { 0, KEY_UP          ,0x00010000 }, // Found @0xffbb9534, levent 0x04
59//    { 0, KEY_DISPLAY     ,0x00100000 }, // Found @0xffbb954c, levent 0x0a
60//    { 0, KEY_MENU        ,0x00200000 }, // Found @0xffbb9554, levent 0x09
61//    { 2, KEY_SHOOT_HALF  ,0x00000001 }, // Found @0xffbb95a4, levent 0x00
62//    { 2, KEY_SHOOT_FULL  ,0x00000003 }, // Found @0xffbb95ac, levent 0x01
63//    { 0, 0, 0 }
64//};
65
66// Values below go in 'platform_camera.h':
67//#define CAM_DRYOS         1
68//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
69//#define CAM_RAW_ROWPIX    3744 // Found @0xff9579d0
70//#define CAM_RAW_ROWS      2784 // Found @0xff9579d8
71//#undef  CAM_UNCACHED_BIT
72//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83af74
73
74// Stubs below matched 100%.
75//    Name                                     Address                Comp to stubs_entry_2.S
76NSTUB(AllocateMemory                          ,0xffb08e9c) //101
77NSTUB(AllocateUncacheableMemory               ,0xff83af30) //112
78NSTUB(Close                                   ,0xff8370e0) //101
79NSTUB(CreateTask                              ,0xff81e8a0) //101
80NSTUB(DebugAssert                             ,0xff81eb78) //111
81NSTUB(DeleteFile_Fut                          ,0xff836a58) //112
82NSTUB(DoAFLock                                ,0xff838940) //102
83NSTUB(EnterToCompensationEVF                  ,0xff838d24) //104
84NSTUB(ExecuteEventProcedure                   ,0xff8917a4) //  1
85NSTUB(ExitFromCompensationEVF                 ,0xff838d68) //104
86NSTUB(ExitTask                                ,0xff81eb30) //101
87NSTUB(ExpCtrlTool_StartContiAE                ,0xff847454) //104
88NSTUB(ExpCtrlTool_StopContiAE                 ,0xff8475ec) //104
89NSTUB(Fclose_Fut                              ,0xff836bd4) //101
90NSTUB(Feof_Fut                                ,0xff836dc0) //  1
91NSTUB(Fflush_Fut                              ,0xff836dfc) //  1
92NSTUB(Fgets_Fut                               ,0xff836d28) //  1
93NSTUB(Fopen_Fut                               ,0xff836b94) //101
94NSTUB(Fread_Fut                               ,0xff836c80) //101
95NSTUB(FreeMemory                              ,0xffb08e94) //101
96NSTUB(FreeUncacheableMemory                   ,0xff83af70) //112
97NSTUB(Fseek_Fut                               ,0xff836d74) //101
98NSTUB(Fwrite_Fut                              ,0xff836cd4) //101
99NSTUB(GetBatteryTemperature                   ,0xff868f80) //102
100NSTUB(GetCCDTemperature                       ,0xff868f0c) //102
101NSTUB(GetCurrentAvValue                       ,0xff97fcb8) //102
102NSTUB(GetDrive_ClusterSize                    ,0xff876948) //  4
103NSTUB(GetDrive_FreeClusters                   ,0xff8769a8) //  4
104NSTUB(GetDrive_TotalClusters                  ,0xff87697c) //  3
105NSTUB(GetFocusLensSubjectDistance             ,0xff97e348) //102
106NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97e794) //  3
107NSTUB(GetImageFolder                          ,0xff95f2fc) //106
108NSTUB(GetKbdState                             ,0xff865678) //109
109NSTUB(GetMemInfo                              ,0xff81a264) //  3
110NSTUB(GetOpticalTemperature                   ,0xff868ff4) //102
111NSTUB(GetParameterData                        ,0xff9becf0) //101
112NSTUB(GetPropertyCase                         ,0xff8954f0) //102
113NSTUB(GetSystemTime                           ,0xffb08ef4) //101
114NSTUB(GetZoomLensCurrentPoint                 ,0xff9819e0) //102
115NSTUB(GetZoomLensCurrentPosition              ,0xffaf6880) //102
116NSTUB(GiveSemaphore                           ,0xff83a94c) //112
117NSTUB(IsStrobeChargeCompleted                 ,0xff8ea5f0) //102
118NSTUB(LEDDrive                                ,0xff8647ec) //103
119NSTUB(LocalTime                               ,0xff88f08c) //  1
120NSTUB(LockMainPower                           ,0xff89c204) //103
121NSTUB(Lseek                                   ,0xff8371fc) //101
122NSTUB(MakeDirectory_Fut                       ,0xff836acc) //  1
123NSTUB(MoveFocusLensToDistance                 ,0xffb72134) //102
124NSTUB(MoveIrisWithAv                          ,0xffb04a34) //102
125NSTUB(MoveZoomLensWithPoint                   ,0xffb051c4) //102
126NSTUB(NewTaskShell                            ,0xff894f0c) //103
127NSTUB(Open                                    ,0xff837074) //101
128NSTUB(PB2Rec                                  ,0xff89f18c) //104
129NSTUB(PT_MoveDigitalZoomToWide                ,0xff87f5c0) //102
130NSTUB(PT_MoveOpticalZoomAt                    ,0xff87f598) //102
131NSTUB(PT_PlaySound                            ,0xff88a140) //  4
132NSTUB(PostLogicalEventForNotPowerType         ,0xff899b70) //103
133NSTUB(PostLogicalEventToUI                    ,0xff899bbc) //103
134NSTUB(PutInNdFilter                           ,0xffb05028) //102
135NSTUB(PutOutNdFilter                          ,0xffb0504c) //102
136NSTUB(Read                                    ,0xff81ad74) //101
137NSTUB(ReadFastDir                             ,0xffae2c20) //  4
138NSTUB(Rec2PB                                  ,0xff89f1cc) //104
139NSTUB(RefreshPhysicalScreen                   ,0xff8b3a68) //104
140NSTUB(Remove                                  ,0xff837114) //  4
141NSTUB(RenameFile_Fut                          ,0xff8369c4) //  4
142NSTUB(Restart                                 ,0xff83c71c) //106
143NSTUB(ScreenLock                              ,0xff8b4c98) //  4
144NSTUB(ScreenUnlock                            ,0xff8b4cfc) //  3
145NSTUB(SetAE_ShutterSpeed                      ,0xffb7487c) //102
146NSTUB(SetAutoShutdownTime                     ,0xff89c278) //103
147NSTUB(SetCurrentCaptureModeType               ,0xff8a4d44) //101
148NSTUB(SetFileTimeStamp                        ,0xff83737c) //  4
149NSTUB(SetLogicalEventActive                   ,0xff89bf40) //101
150NSTUB(SetParameterData                        ,0xff9bebc8) //101
151NSTUB(SetPropertyCase                         ,0xff8953c8) //102
152NSTUB(SetScriptMode                           ,0xff89bf90) //101
153NSTUB(SleepTask                               ,0xff83abb4) //101
154NSTUB(TakeSemaphore                           ,0xff83a87c) //101
155NSTUB(TurnOffBackLight                        ,0xff8abd94) //104
156NSTUB(TurnOnBackLight                         ,0xff8abd7c) //104
157NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9a9e9c) //101
158NSTUB(UnlockAF                                ,0xff838978) //102
159NSTUB(UnlockMainPower                         ,0xff89c158) //103
160NSTUB(UnsetZoomForMovie                       ,0xff9c57dc) //104
161NSTUB(UpdateMBROnFlash                        ,0xff8767c8) //  3
162NSTUB(VbattGet                                ,0xff833180) //103
163NSTUB(Write                                   ,0xff837170) //101
164NSTUB(WriteSDCard                             ,0xff96e820) //108
165NSTUB(_log                                    ,0xffbb4ddc) //111
166NSTUB(_log10                                  ,0xffbb3a68) //112
167NSTUB(_pow                                    ,0xffbb3bd8) //114
168NSTUB(_sqrt                                   ,0xffbb69e4) //  1
169NSTUB(add_ptp_handler                         ,0xffa9d218) //  3
170NSTUB(apex2us                                 ,0xffa5c248) //  4
171NSTUB(close                                   ,0xff81ab8c) //  1
172NSTUB(closedir                                ,0xffae2a7c) //  4
173NSTUB(err_init_task                           ,0xff815fd4) //  4
174NSTUB(exmem_alloc                             ,0xff88ffd8) //103
175NSTUB(free                                    ,0xff814244) //112
176NSTUB(kbd_p1_f                                ,0xff834a6c) //109
177NSTUB(kbd_p1_f_cont                           ,0xff834a78) //109
178NSTUB(kbd_p2_f                                ,0xff8342bc) //109
179NSTUB(kbd_read_keys                           ,0xff8349f4) //109
180NSTUB(kbd_read_keys_r2                        ,0xff864d8c) //109
181NSTUB(lseek                                   ,0xff8371fc) //101
182NSTUB(malloc                                  ,0xff8141e8) //112
183NSTUB(memcmp                                  ,0xff8206d8) //101
184NSTUB(memcpy                                  ,0xff840674) //101
185NSTUB(memset                                  ,0xffa5b230) //101
186NSTUB(mkdir                                   ,0xff83757c) //  4
187NSTUB(mktime_ext                              ,0xff8b5b6c) //  1
188NSTUB(open                                    ,0xff81aadc) //  1
189NSTUB(opendir                                 ,0xffae2acc) //  4
190NSTUB(openfastdir                             ,0xffae2acc) //  4
191NSTUB(qsort                                   ,0xffb5fbc8) //  4
192NSTUB(rand                                    ,0xffa5b370) //  4
193NSTUB(read                                    ,0xff81ad74) //101
194NSTUB(readfastdir                             ,0xffae2c20) //  4
195NSTUB(reboot_fw_update                        ,0xffae8040) //  4
196NSTUB(rename                                  ,0xff8369c4) //  4
197NSTUB(set_control_event                       ,0xff89bb30) //111
198NSTUB(srand                                   ,0xffa5b364) //  4
199NSTUB(stat                                    ,0xff837244) //  3
200NSTUB(strcat                                  ,0xff8b5328) //  1
201NSTUB(strchr                                  ,0xff8140b4) //  1
202NSTUB(strcmp                                  ,0xff820694) //101
203NSTUB(strcpy                                  ,0xff82067c) //101
204NSTUB(strftime                                ,0xff8b5574) //113
205NSTUB(strlen                                  ,0xff814100) //101
206NSTUB(strncmp                                 ,0xff814068) //  1
207NSTUB(strncpy                                 ,0xff81402c) //  1
208NSTUB(strrchr                                 ,0xff8140d8) //  1
209NSTUB(strtol                                  ,0xff840954) //101
210NSTUB(strtolx                                 ,0xff840758) //109
211  DEF(task_CaptSeq                            ,0xff88261c) //107
212  DEF(task_ExpDrv                             ,0xff8cc0d0) //110
213  DEF(task_InitFileModules                    ,0xff89fc7c) //107
214  DEF(task_MovieRecord                        ,0xff987094) //107
215  DEF(task_PhySw                              ,0xff8345ec) //107
216  DEF(task_RotaryEncoder                      ,0xff8657ec) //107
217NSTUB(time                                    ,0xff88f66c) //  2
218NSTUB(vsprintf                                ,0xff820640) //  4
219NSTUB(write                                   ,0xff837170) //101
Note: See TracBrowser for help on using the repository browser.