Changeset 1291 for trunk/platform/a480/sub/100b/stubs_entry.S
- Timestamp:
- 08/13/11 07:04:50 (22 months ago)
- File:
-
- 1 edited
-
trunk/platform/a480/sub/100b/stubs_entry.S (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/a480/sub/100b/stubs_entry.S
r1165 r1291 2 2 #include "stubs_asm.h" 3 3 4 NSTUB(AllocateMemory, 0xffdc45b0) 5 NSTUB(AllocateUncacheableMemory, 0xffc166f4) 6 NSTUB(Close, 0xffc1322c) 7 NSTUB(CreateTask, 0xffc0b9c4) 8 NSTUB(DeleteFile_Fut, 0xffc12ad8) 9 // ERROR: EnterToCompensationEVF is not found! 10 NSTUB(ExecuteEventProcedure, 0xffc4dbd8) 11 // ERROR: ExitFromCompensationEVF is not found! 12 NSTUB(ExitTask, 0xffc0bc54) 13 NSTUB(Fclose_Fut, 0xffc12c54) 14 NSTUB(Feof_Fut, 0xffc12e40) 15 NSTUB(Fflush_Fut, 0xffc12e7c) 16 NSTUB(Fgets_Fut, 0xffc12da8) 17 NSTUB(Fopen_Fut, 0xffc12c14) 18 NSTUB(Fread_Fut, 0xffc12d00) 19 NSTUB(FreeMemory, 0xffdc45a8) 20 // Best match: 91% 21 NSTUB(FreeUncacheableMemory, 0xffc16734) 22 NSTUB(Fseek_Fut, 0xffc12df4) 23 NSTUB(Fwrite_Fut, 0xffc12d54) 24 // ERROR: GetBatteryTemperature is not found! 25 // ERROR: GetCCDTemperature is not found! 26 NSTUB(GetCurrentAvValue, 0xffce0fe8) 27 // ERROR: GetDrive_ClusterSize is not found! 28 // ERROR: GetDrive_FreeClusters is not found! 29 // ERROR: GetDrive_TotalClusters is not found! 30 // Best match: 64% 31 NSTUB(GetFocusLensSubjectDistance, 0xffce00c8) 32 // Best match: 77% 33 NSTUB(GetFocusLensSubjectDistanceFromLens, 0xffce03d4) 34 NSTUB(GetMemInfo, 0xffc03be8) 35 // Best match: 80% 36 NSTUB(GetOpticalTemperature, 0xffc2e9dc) 37 // Best match: 96% 38 NSTUB(GetParameterData, 0xffd08d30) 39 // Best match: 86% 40 NSTUB(GetPropertyCase, 0xffc51944) 41 NSTUB(GetSystemTime, 0xffdc4608) 42 // Best match: 74% 43 NSTUB(GetZoomLensCurrentPoint, 0xffce3dac) 44 NSTUB(GetZoomLensCurrentPosition, 0xffdbcdf4) 45 // Best match: 77% 46 NSTUB(IsStrobeChargeCompleted, 0xffc7ccc4) 47 NSTUB(LocalTime, 0xffc4b954) 48 // Best match: 93% 49 NSTUB(LockMainPower, 0xffc55210) 50 NSTUB(Lseek, 0xffc1336c) 51 // Best match: 92% 52 NSTUB(MakeDirectory_Fut, 0xffc12b4c) 53 // Best match: 69% 54 NSTUB(MoveFocusLensToDistance, 0xffe04080) 55 // Best match: 58% 56 NSTUB(MoveZoomLensWithPoint, 0xffdc2454) 57 // Best match: 62% 58 NSTUB(NewTaskShell, 0xffc513e8) 59 NSTUB(Open, 0xffc13204) 60 // Best match: 85% 61 NSTUB(PB2Rec, 0xffc57ebc) 62 // Best match: 81% 63 NSTUB(PT_PlaySound, 0xffc40a50) 64 // Best match: 86% 65 NSTUB(PostLogicalEventForNotPowerType, 0xffc54838) 66 // Best match: 92% 67 NSTUB(PostLogicalEventToUI, 0xffc54884) 68 NSTUB(Read, 0xffc0a21c) 69 NSTUB(ReadFastDir, 0xffdb0044) 70 // Best match: 72% 71 NSTUB(Rec2PB, 0xffc57efc) 72 // ERROR: RefreshPhysicalScreen is not found! 73 NSTUB(Remove, 0xffc13274) 74 // Best match: 93% 75 NSTUB(RenameFile_Fut, 0xffc12a84) 76 NSTUB(Restart, 0xffc17e44) 77 // Best match: 93% 78 NSTUB(SetAutoShutdownTime, 0xffc55284) 79 // Best match: 90% 80 NSTUB(SetCurrentCaptureModeType, 0xffc5b514) 81 NSTUB(SetFileTimeStamp, 0xffc13508) 82 // Best match: 64% 83 NSTUB(SetLogicalEventActive, 0xffc54f8c) 84 // Best match: 96% 85 NSTUB(SetParameterData, 0xffd08ca0) 86 // Best match: 86% 87 NSTUB(SetPropertyCase, 0xffc5183c) 88 // Best match: 92% 89 NSTUB(SleepTask, 0xffc16578) 90 // Best match: 60% 91 NSTUB(TakeSemaphore, 0xffc0b850) 92 // ERROR: TurnOffBackLight is not found! 93 // Best match: 54% 94 NSTUB(TurnOnBackLight, 0xffc5fcd4) 95 // Best match: 51% 96 NSTUB(UIFS_WriteFirmInfoToFile, 0xffcfa8ec) 97 // Best match: 93% 98 NSTUB(UnlockMainPower, 0xffc55164) 99 // Best match: 89% 100 NSTUB(UpdateMBROnFlash, 0xffc3a77c) 101 // Best match: 85% 102 NSTUB(VbattGet, 0xffc10294) 103 NSTUB(Write, 0xffc132d8) 104 NSTUB(_log, 0xffe328a4) 105 NSTUB(_log10, 0xffe317e8) 106 NSTUB(_pow, 0xffe31958) 107 NSTUB(_sqrt, 0xffe33c0c) 108 NSTUB(add_ptp_handler, 0xffd8a108) 109 NSTUB(close, 0xffc0a034) 110 NSTUB(closedir, 0xffdb0114) 111 NSTUB(closefastdir, 0xffdb0114) 112 NSTUB(free, 0xffc03a40) 113 // Best match: 86% 114 NSTUB(kbd_p1_f, 0xffc113dc) 115 // Best match: 86% 116 NSTUB(kbd_p1_f_cont, 0xffc113e8) 117 NSTUB(kbd_p2_f, 0xffc10ca0) 118 // Best match: 51% 119 NSTUB(kbd_pwr_off, 0xffc2c8c4) 120 // ERROR: kbd_pwr_on is not found! 121 // Best match: 84% 122 NSTUB(kbd_read_keys, 0xffc11360) 123 // Best match: 73% 124 NSTUB(kbd_read_keys_r2, 0xffc2c3c0) 125 // ALT: NSTUB(kbd_read_keys_r2, 0xffc2c3a4) // 16/6 126 NSTUB(lseek, 0xffc1336c) 127 NSTUB(malloc, 0xffc0396c) 128 NSTUB(memcmp, 0xffc0d9b4) 129 NSTUB(memcpy, 0xffc63638) 130 NSTUB(memset, 0xffd4c1f0) 131 NSTUB(mkdir, 0xffc135d0) 132 NSTUB(mktime_ext, 0xffc63ea4) 133 NSTUB(open, 0xffc09f84) 134 NSTUB(opendir, 0xffdaffb0) 135 NSTUB(openfastdir, 0xffdaffb0) 136 // Best match: 56% 137 NSTUB(qsort, 0xffd4c230) 138 // Best match: 95% 139 NSTUB(rand, 0xffc0dabc) 140 NSTUB(read, 0xffc0a21c) 141 NSTUB(readfastdir, 0xffdb0044) 142 // Best match: 86% 143 NSTUB(reboot_fw_update, 0xffdb3b28) 144 NSTUB(rename, 0xffc13300) 145 // Best match: 93% 146 NSTUB(set_control_event, 0xffc54cc0) 147 // Best match: 95% 148 NSTUB(srand, 0xffc0dab0) 149 NSTUB(stat, 0xffc13438) 150 NSTUB(strcat, 0xffc6344c) 151 // ERROR: strchr is not found! 152 NSTUB(strcmp, 0xffc0d94c) 153 NSTUB(strcpy, 0xffc0d934) 154 NSTUB(strftime, 0xffc638ac) 155 NSTUB(strlen, 0xffc0d990) 156 // Best match: 85% 157 NSTUB(strncmp, 0xffc63488) 158 NSTUB(strncpy, 0xffc1bf08) 159 // Best match: 80% 160 NSTUB(strrchr, 0xffc634d0) 161 NSTUB(strtol, 0xffc1c140) 162 NSTUB(strtolx, 0xffc1bf44) 163 NSTUB(time, 0xffc4b808) 164 NSTUB(vsprintf, 0xffc0d8f8) 165 NSTUB(write, 0xffc0a27c) 4 // Camera info: 5 // DRYOS R31 (DRYOS version 2.3, release #0031) 6 // Firmware Ver GM1.00B 7 // Canon PowerShot A480 8 9 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' 10 // Name Address Rule % Comp to stubs_entry_2.S 11 //NSTUB(GetBatteryTemperature ,0xffc2e964) //102 *** != 0xffc2eb38 12 //NSTUB(GetCCDTemperature ,0xffc2e8f0) //102 *** != 0xffc2eb38 13 //NSTUB(PutInNdFilter ,0xffdc22b8) //102 *** != 0xffe01e0c 14 //NSTUB(PutOutNdFilter ,0xffdc22dc) //102 *** != 0xffe01e44 15 NSTUB(kbd_pwr_off ,0xffc2c8c4) // 2 64% 16 // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xffc00954 17 //NSTUB(kbd_read_keys_r2 ,0xffc2c384) //109 *** != 0xffc1138c 18 //NSTUB(rename ,0xffc12a84) // 1 *** != 0xffc13300 19 //NSTUB(write ,0xffc132d8) //101 *** != 0xffc0a27c 20 21 // Check of modemap from 'platform/CAMERA/shooting.c': 22 // Firmware modemap table found @ffc58b40 -> ffc555f8 -> ffd07cb4 -> ffdcd6ec -> ffe71f6c 23 // No problems found with modemap table. 24 25 // Values below go in 'stubs_min.S': 26 //DEF(physw_status ,0x0000cef8) // Found @0xffc11360, stubs_min = 0x0000cef8 (0xCEF8) 27 //DEF(physw_run ,0x00001bec) // Found @0xffc10fd4, stubs_min = 0x00001bec (0x1BE0+0x0C) 28 //DEF(levent_table ,0xffe57a18) // Found @0xffe57a18, stubs_min = 0xffe57a18 (0xFFE57A18) 29 //DEF(FlashParamsTable ,0xffe72138) // Found @0xffe72138, stubs_min = 0xffe72138 (0xFFE72138) 30 //DEF(movie_status ,0x00005700) // Found @0xffce5478, stubs_min = 0x00005700 (0x56C8+0x38) 31 //DEF(canon_menu_active ,0x00002a00) // Found @0xffc52450, stubs_min = 0x00002a00 (0x29FC+4) 32 //DEF(canon_shoot_menu_active ,0x00006861) // Found @0xffd16804, ** != ** stubs_min = 0xffc00414 (0xFFC00414) 33 //DEF(playrec_mode ,0x00002798) // Found @0xffc46ef8, stubs_min = 0x00002798 (0x2794+0x4) 34 //DEF(zoom_status ,0x0000a2d4) // Found @0xffdcf93c, stubs_min = 0x0000a2d4 (0xA2D4) 35 //DEF(some_flag_for_af_scan ,0x00005bbc) // Found @0xffce7b58, stubs_min = 0x00005bbc (0x5BBC) 36 37 // Values below go in 'lib.c': 38 //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc2845c 39 //void *vid_get_viewport_fb() { return (void*)0x10659ec0; } // Found @0xffe07650 40 //char *camera_jpeg_count_str() { return (char*)0x0002cff8; } // Found @0xffd41b24 41 //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffe09bc4 42 //int get_flash_params_count(void) { return 0x7a; } // Found @0xffd08d70 43 44 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). 45 //#define SD_READONLY_FLAG 0x00040000 // Found @0xffe34fec, levent 0x90a 46 //#define SD_READONLY_IDX 2 47 //#define USB_FLAG 0x00080000 // Found @0xffe34ff8, 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 // { 2, KEY_UP ,0x00000001 }, // Found @0xffe34f50, levent 0x04 53 // { 2, KEY_DOWN ,0x00000002 }, // Found @0xffe34f5c, levent 0x05 54 // { 2, KEY_RIGHT ,0x00000004 }, // Found @0xffe34f68, levent 0x07 55 // { 2, KEY_LEFT ,0x00000008 }, // Found @0xffe34f74, levent 0x06 56 // { 2, KEY_SHOOT_HALF ,0x00000010 }, // Found @0xffe34f80, levent 0x00 57 // { 2, KEY_SHOOT_FULL ,0x00000030 }, // Found @0xffe34f8c, levent 0x01 58 // { 2, KEY_ZOOM_OUT ,0x00000040 }, // Found @0xffe34f98, levent 0x03 59 // { 2, KEY_ZOOM_IN ,0x00000080 }, // Found @0xffe34fa4, levent 0x02 60 // { 2, KEY_SET ,0x00000100 }, // Found @0xffe34fb0, levent 0x08 61 // { 2, KEY_MENU ,0x00000400 }, // Found @0xffe34fbc, levent 0x09 62 // { 0, 0, 0 } 63 //}; 64 65 // Values below go in 'platform_camera.h': 66 //#define CAM_DRYOS 1 67 //#define CAM_RAW_ROWPIX 3720 // Found @0xffcb8f20 68 //#define CAM_RAW_ROWS 2772 // Found @0xffcb8f28 69 //#undef CAM_UNCACHED_BIT 70 //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc16738 71 72 // Stubs below matched 100%. 73 // Name Address Comp to stubs_entry_2.S 74 NSTUB(AllocateMemory ,0xffdc45b0) //101 75 NSTUB(AllocateUncacheableMemory ,0xffc166f4) //112 76 NSTUB(Close ,0xffc1322c) //101 77 NSTUB(CreateTask ,0xffc0b9c4) //101 78 NSTUB(DebugAssert ,0xffc0be9c) //111 79 NSTUB(DeleteFile_Fut ,0xffc12ad8) //112 80 //NSTUB(DoAFLock ,0xffc14830) //102 == 0xffc14830 81 //NSTUB(EnterToCompensationEVF ,0xffc148e0) //104 == 0xffc148e0 82 NSTUB(ExecuteEventProcedure ,0xffc4dbd8) // 1 83 //NSTUB(ExitFromCompensationEVF ,0xffc14924) //104 == 0xffc14924 84 NSTUB(ExitTask ,0xffc0bc54) //101 85 //NSTUB(ExpCtrlTool_StartContiAE ,0xffc1eee4) //104 == 0xffc1eee4 86 //NSTUB(ExpCtrlTool_StopContiAE ,0xffc1f028) //104 == 0xffc1f028 87 NSTUB(Fclose_Fut ,0xffc12c54) //101 88 NSTUB(Feof_Fut ,0xffc12e40) // 1 89 NSTUB(Fflush_Fut ,0xffc12e7c) // 1 90 NSTUB(Fgets_Fut ,0xffc12da8) // 1 91 NSTUB(Fopen_Fut ,0xffc12c14) //101 92 NSTUB(Fread_Fut ,0xffc12d00) //101 93 NSTUB(FreeMemory ,0xffdc45a8) //101 94 NSTUB(FreeUncacheableMemory ,0xffc16734) //112 95 NSTUB(Fseek_Fut ,0xffc12df4) //101 96 NSTUB(Fwrite_Fut ,0xffc12d54) //101 97 NSTUB(GetCurrentAvValue ,0xffce0fe8) //102 98 //NSTUB(GetDrive_ClusterSize ,0xffc3a924) // 5 == 0xffc3a924 99 //NSTUB(GetDrive_FreeClusters ,0xffc3a97c) // 5 == 0xffc3a97c 100 //NSTUB(GetDrive_TotalClusters ,0xffc3a950) // 5 == 0xffc3a950 101 NSTUB(GetFocusLensSubjectDistance ,0xffce00c8) //102 102 NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffce03d4) // 3 103 NSTUB(GetKbdState ,0xffc2c8ac) //109 104 NSTUB(GetMemInfo ,0xffc03be8) // 1 105 NSTUB(GetOpticalTemperature ,0xffc2e9dc) //102 106 NSTUB(GetParameterData ,0xffd08d30) //101 107 NSTUB(GetPropertyCase ,0xffc51944) //102 108 NSTUB(GetSystemTime ,0xffdc4608) //101 109 NSTUB(GetZoomLensCurrentPoint ,0xffce3dac) //102 110 NSTUB(GetZoomLensCurrentPosition ,0xffdbcdf4) //102 111 NSTUB(GiveSemaphore ,0xffc0b920) //112 112 NSTUB(IsStrobeChargeCompleted ,0xffc7ccc4) //102 113 //NSTUB(LEDDrive ,0xffc2c020) //103 == 0xffc2c020 114 NSTUB(LocalTime ,0xffc4b954) // 1 115 NSTUB(LockMainPower ,0xffc55210) //103 116 NSTUB(Lseek ,0xffc1336c) //101 117 NSTUB(MakeDirectory_Fut ,0xffc12b4c) // 1 118 NSTUB(MoveFocusLensToDistance ,0xffe04080) //102 119 NSTUB(MoveIrisWithAv ,0xffdc1ec8) //102 120 NSTUB(MoveZoomLensWithPoint ,0xffdc2454) //102 121 NSTUB(NewTaskShell ,0xffc513e8) //103 122 NSTUB(Open ,0xffc13204) //101 123 NSTUB(PB2Rec ,0xffc57ebc) //104 124 NSTUB(PT_MoveDigitalZoomToWide ,0xffc40e3c) //102 125 NSTUB(PT_MoveOpticalZoomAt ,0xffc40e14) //102 126 NSTUB(PT_PlaySound ,0xffc40a50) //102 127 NSTUB(PostLogicalEventForNotPowerType ,0xffc54838) //103 128 NSTUB(PostLogicalEventToUI ,0xffc54884) //103 129 NSTUB(Read ,0xffc0a21c) //101 130 NSTUB(ReadFastDir ,0xffdb0044) // 1 131 NSTUB(Rec2PB ,0xffc57efc) //104 132 //NSTUB(RefreshPhysicalScreen ,0xffd4be50) //104 == 0xffd4be50 133 NSTUB(Remove ,0xffc13274) // 1 134 NSTUB(RenameFile_Fut ,0xffc12a84) // 1 135 NSTUB(Restart ,0xffc17e44) //106 136 //NSTUB(SetAE_ShutterSpeed ,0xffe06860) //102 == 0xffe06860 137 NSTUB(SetAutoShutdownTime ,0xffc55284) //103 138 NSTUB(SetCurrentCaptureModeType ,0xffc5b514) //101 139 NSTUB(SetFileTimeStamp ,0xffc13508) // 1 140 NSTUB(SetLogicalEventActive ,0xffc54f8c) //101 141 NSTUB(SetParameterData ,0xffd08ca0) //101 142 NSTUB(SetPropertyCase ,0xffc5183c) //102 143 //NSTUB(SetScriptMode ,0xffc54fdc) //101 == 0xffc54fdc 144 NSTUB(SleepTask ,0xffc16578) //101 145 NSTUB(TakeSemaphore ,0xffc0b850) //101 146 //NSTUB(TurnOffBackLight ,0xffc5fcec) //104 == 0xffc5fcec 147 NSTUB(TurnOnBackLight ,0xffc5fcd4) //104 148 NSTUB(UIFS_WriteFirmInfoToFile ,0xffcfa8ec) //101 149 //NSTUB(UnlockAF ,0xffc14868) //102 == 0xffc14868 150 NSTUB(UnlockMainPower ,0xffc55164) //103 151 //NSTUB(UnsetZoomForMovie ,0xffd0e960) //104 == 0xffd0e960 152 //NSTUB(UpdateMBROnFlash ,0xffc3a77c) // 3 == 0xffc3a77c 153 NSTUB(VbattGet ,0xffc10294) //103 154 NSTUB(Write ,0xffc132d8) //101 155 //NSTUB(WriteSDCard ,0xffcd598c) //108 == 0xffcd598c 156 NSTUB(_log ,0xffe328a4) //111 157 NSTUB(_log10 ,0xffe317e8) //112 158 NSTUB(_pow ,0xffe31958) //114 159 NSTUB(_sqrt ,0xffe33c0c) // 1 160 NSTUB(add_ptp_handler ,0xffd8a108) // 3 161 //NSTUB(apex2us ,0xffd4cf08) // 4 == 0xffd4cf08 162 NSTUB(close ,0xffc0a034) // 1 163 NSTUB(closedir ,0xffdb0114) // 1 164 NSTUB(err_init_task ,0xffc04e30) // 4 165 NSTUB(exmem_alloc ,0xffc4c588) //103 166 NSTUB(free ,0xffc03a40) //112 167 NSTUB(kbd_p1_f ,0xffc113dc) //109 168 NSTUB(kbd_p1_f_cont ,0xffc113e8) //109 169 NSTUB(kbd_p2_f ,0xffc10ca0) //109 170 NSTUB(kbd_read_keys ,0xffc11360) //109 171 NSTUB(lseek ,0xffc1336c) //101 172 NSTUB(malloc ,0xffc0396c) //112 173 NSTUB(memcmp ,0xffc0d9b4) //101 174 NSTUB(memcpy ,0xffc63638) //101 175 NSTUB(memset ,0xffd4c1f0) //101 176 NSTUB(mkdir ,0xffc135d0) // 1 177 // ALT: NSTUB(mkdir, 0xffc13670) // 1 32/0 178 NSTUB(mktime_ext ,0xffc63ea4) // 1 179 NSTUB(open ,0xffc09f84) // 1 180 NSTUB(opendir ,0xffdaffb0) // 1 181 NSTUB(openfastdir ,0xffdaffb0) // 1 182 //NSTUB(qsort ,0xffdf2a18) // 1 == 0xffdf2a18 183 NSTUB(rand ,0xffc0dabc) // 1 184 NSTUB(read ,0xffc0a21c) //101 185 NSTUB(readfastdir ,0xffdb0044) // 1 186 NSTUB(reboot_fw_update ,0xffdb3b28) // 5 187 NSTUB(set_control_event ,0xffc54cc0) //111 188 NSTUB(srand ,0xffc0dab0) // 1 189 NSTUB(stat ,0xffc13438) // 1 190 NSTUB(strcat ,0xffc6344c) // 1 191 //NSTUB(strchr ,0xffc634d4) // 1 == 0xffc634d4 192 NSTUB(strcmp ,0xffc0d94c) //101 193 NSTUB(strcpy ,0xffc0d934) //101 194 NSTUB(strftime ,0xffc638ac) // 1 195 NSTUB(strlen ,0xffc0d990) //101 196 NSTUB(strncmp ,0xffc63488) // 1 197 NSTUB(strncpy ,0xffc1bf08) // 1 198 //NSTUB(strrchr ,0xffd4c1c8) // 1 == 0xffd4c1c8 199 NSTUB(strtol ,0xffc1c140) //101 200 NSTUB(strtolx ,0xffc1bf44) //109 201 DEF(task_CaptSeq ,0xffc42f34) //107 202 DEF(task_ExpDrv ,0xffc74cb0) //110 203 DEF(task_InitFileModules ,0xffc589cc) //107 204 DEF(task_MovieRecord ,0xffce56dc) //107 205 DEF(task_PhySw ,0xffc10fd0) //107 206 NSTUB(time ,0xffc4b808) // 1 207 NSTUB(vsprintf ,0xffc0d8f8) // 1
Note: See TracChangeset
for help on using the changeset viewer.