FreeCalypso > hg > freecalypso-reveng
comparison pirelli/fw-disasm @ 237:452ea81450e1
pirelli/fw-disasm: more l1_cust stuff
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 22 Dec 2017 21:50:59 +0000 |
parents | 9ee2d1d91f7e |
children | 4ec6bbbac914 |
comparison
equal
deleted
inserted
replaced
236:9ee2d1d91f7e | 237:452ea81450e1 |
---|---|
916 | 916 |
917 0052FB70 _RVM_SWE_GET_INFO_ARRAY | 917 0052FB70 _RVM_SWE_GET_INFO_ARRAY |
918 | 918 |
919 IRAM data: | 919 IRAM data: |
920 | 920 |
921 0x801550: beginning of the .bss section from the l1_cust module | |
922 | |
921 0x801550: rf | 923 0x801550: rf |
924 0x801734: adc_cal (offset matches TCS211) | |
925 0x801758: temperature (ditto) | |
926 0x801964: ser_cfg_info (moved here, not in TCS211) | |
927 0x801ac8: adc | |
922 | 928 |
923 IRAM code: | 929 IRAM code: |
930 | |
931 ; default adc_cal table loaded by Pirelli's get_cal_from_nvmem() | |
932 | |
933 83c1d0: 1ac2 | |
934 83c1d2: 222e | |
935 83c1d4: 1b58 | |
936 83c1d6: 1b58 | |
937 83c1d8: 1b58 | |
938 83c1da: 1b58 | |
939 83c1dc: 1b58 | |
940 83c1de: 0100 | |
941 83c1e0: 1b58 | |
942 83c1e2: 0000 | |
943 83c1e4: 0000 | |
944 83c1e6: 0000 | |
945 83c1e8: 0000 | |
946 83c1ea: 0000 | |
947 83c1ec: 0000 | |
948 83c1ee: 0000 | |
949 83c1f0: 0000 | |
950 83c1f2: 0000 | |
924 | 951 |
925 $Cust_Init_Layer1: | 952 $Cust_Init_Layer1: |
926 83ca64: b500 push {lr} | 953 83ca64: b500 push {lr} |
927 83ca66: b084 sub sp, #16 ; 0x10 | 954 83ca66: b084 sub sp, #16 ; 0x10 |
928 83ca68: 4669 mov r1, sp | 955 83ca68: 4669 mov r1, sp |
1031 83cb3e: 2212 mov r2, #18 ; 0x12 | 1058 83cb3e: 2212 mov r2, #18 ; 0x12 |
1032 83cb40: f002 feac bl 0x83f89c ; C$MEMCPY | 1059 83cb40: f002 feac bl 0x83f89c ; C$MEMCPY |
1033 83cb44: bc04 pop {r2} | 1060 83cb44: bc04 pop {r2} |
1034 83cb46: 4690 mov r8, r2 | 1061 83cb46: 4690 mov r8, r2 |
1035 83cb48: bdf0 pop {r4, r5, r6, r7, pc} | 1062 83cb48: bdf0 pop {r4, r5, r6, r7, pc} |
1063 83cb4a: 46c0 nop (mov r8, r8) | |
1064 | |
1065 83cb4c: 008016ec | |
1066 | |
1067 $get_cal_from_nvmem: | |
1068 83cb50: b530 push {r4, r5, lr} | |
1069 83cb52: 1c0c add r4, r1, #0 | |
1070 83cb54: 1c05 add r5, r0, #0 | |
1071 83cb56: 2a01 cmp r2, #1 | |
1072 83cb58: d00e beq 0x83cb78 | |
1073 83cb5a: 2a02 cmp r2, #2 | |
1074 83cb5c: d118 bne 0x83cb90 | |
1075 83cb5e: a0c7 add r0, pc, #796 ; 0x31c | |
1076 83cb60: 1c29 add r1, r5, #0 | |
1077 83cb62: 1c22 add r2, r4, #0 | |
1078 83cb64: f707 fd98 bl 0x744698 | |
1079 83cb68: 2800 cmp r0, #0 | |
1080 83cb6a: d511 bpl 0x83cb90 | |
1081 83cb6c: 4842 ldr r0, =0x801964 ; via 0x83cc78 | |
1082 83cb6e: 2152 mov r1, #82 ; 0x52 | |
1083 83cb70: 7001 strb r1, [r0, #0] | |
1084 83cb72: 2144 mov r1, #68 ; 0x44 | |
1085 83cb74: 7041 strb r1, [r0, #1] | |
1086 83cb76: bd30 pop {r4, r5, pc} | |
1087 83cb78: a0c4 add r0, pc, #784 ; 0x310 | |
1088 83cb7a: 1c29 add r1, r5, #0 | |
1089 83cb7c: 1c22 add r2, r4, #0 | |
1090 83cb7e: f707 fd8b bl 0x744698 | |
1091 83cb82: 2800 cmp r0, #0 | |
1092 83cb84: d504 bpl 0x83cb90 | |
1093 83cb86: 1c28 add r0, r5, #0 | |
1094 83cb88: 49c5 ldr r1, =0x83c1d0 ; via 0x83cea0 | |
1095 83cb8a: 1c22 add r2, r4, #0 | |
1096 83cb8c: f002 fe86 bl 0x83f89c ; C$MEMCPY | |
1097 83cb90: bd30 pop {r4, r5, pc} | |
1098 83cb92: 2000 mov r0, #0 | |
1099 83cb94: 4770 bx lr | |
1100 83cb96: 46c0 nop (mov r8, r8) |