FreeCalypso > hg > freecalypso-reveng
comparison pirelli/fw-disasm @ 253:6f9969cf55a1
pirelli/fw-disasm: rvf_stop_timer() call confirmed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 25 Dec 2017 21:15:23 +0000 |
parents | 2eae53bb4a4e |
children | f3f9dd04567e |
comparison
equal
deleted
inserted
replaced
252:2eae53bb4a4e | 253:6f9969cf55a1 |
---|---|
635 31c746: f7ff fc68 bl 0x31c01a ; $l1_tpu_init | 635 31c746: f7ff fc68 bl 0x31c01a ; $l1_tpu_init |
636 31c74a: f7ff fb47 bl 0x31bddc ; $l1_dsp_init | 636 31c74a: f7ff fb47 bl 0x31bddc ; $l1_dsp_init |
637 31c74e: f7ff fdf9 bl 0x31c344 ; $l1_initialize_var | 637 31c74e: f7ff fdf9 bl 0x31c344 ; $l1_initialize_var |
638 31c752: f0dc fccb bl 0x3f90ec ; $initialize_l1pvar | 638 31c752: f0dc fccb bl 0x3f90ec ; $initialize_l1pvar |
639 31c756: bd30 pop {r4, r5, pc} | 639 31c756: bd30 pop {r4, r5, pc} |
640 | |
641 $rvf_start_timer: | |
642 32ae78: b500 push {lr} | |
643 32ae7a: b085 sub sp, #20 ; 0x14 | |
644 32ae7c: 466b mov r3, sp | |
645 32ae7e: 741a strb r2, [r3, #16] ; 0x10 | |
646 32ae80: 9103 str r1, [sp, #12] ; 0xc | |
647 32ae82: 4669 mov r1, sp | |
648 32ae84: 7208 strb r0, [r1, #8] | |
649 32ae86: f786 fd4c bl 0x2b1922 ; $rvf_get_taskid | |
650 32ae8a: 4669 mov r1, sp | |
651 32ae8c: 7448 strb r0, [r1, #17] ; 0x11 | |
652 32ae8e: 4668 mov r0, sp | |
653 32ae90: 7a00 ldrb r0, [r0, #8] | |
654 32ae92: 2803 cmp r0, #3 | |
655 32ae94: d003 beq 0x32ae9e | |
656 32ae96: 4668 mov r0, sp | |
657 32ae98: 7a00 ldrb r0, [r0, #8] | |
658 32ae9a: 2802 cmp r0, #2 | |
659 32ae9c: d108 bne 0x32aeb0 | |
660 32ae9e: 2000 mov r0, #0 | |
661 32aea0: 9000 str r0, [sp, #0] | |
662 32aea2: a0b3 add r0, pc, #716 ; 0x2cc | |
663 32aea4: 2125 mov r1, #37 ; 0x25 | |
664 32aea6: 2200 mov r2, #0 | |
665 32aea8: 43d2 mvn r2, r2 | |
666 32aeaa: 2305 mov r3, #5 | |
667 32aeac: f0af fec2 bl 0x3dac34 | |
668 32aeb0: 9803 ldr r0, [sp, #12] ; 0xc | |
669 32aeb2: 2800 cmp r0, #0 | |
670 32aeb4: d101 bne 0x32aeba | |
671 32aeb6: 2001 mov r0, #1 | |
672 32aeb8: 9003 str r0, [sp, #12] ; 0xc | |
673 32aeba: 2044 mov r0, #68 ; 0x44 | |
674 32aebc: 4669 mov r1, sp | |
675 32aebe: 7a09 ldrb r1, [r1, #8] | |
676 32aec0: 4348 mul r0, r1 | |
677 32aec2: 21ff mov r1, #255 ; 0xff | |
678 32aec4: 3111 add r1, #17 ; 0x11 | |
679 32aec6: 466a mov r2, sp | |
680 32aec8: 7c52 ldrb r2, [r2, #17] ; 0x11 | |
681 32aeca: 4351 mul r1, r2 | |
682 32aecc: 1840 add r0, r0, r1 | |
683 32aece: 496d ldr r1, =0x1701dbc ; via 0x32b084 | |
684 32aed0: 1808 add r0, r1, r0 | |
685 32aed2: 2104 mov r1, #4 | |
686 32aed4: f0ce fba2 bl 0x3f961c ; $TMSE_Control_Timer | |
687 32aed8: 2244 mov r2, #68 ; 0x44 | |
688 32aeda: 4668 mov r0, sp | |
689 32aedc: 7a00 ldrb r0, [r0, #8] | |
690 32aede: 4342 mul r2, r0 | |
691 32aee0: 20ff mov r0, #255 ; 0xff | |
692 32aee2: 3011 add r0, #17 ; 0x11 | |
693 32aee4: 4669 mov r1, sp | |
694 32aee6: 7c49 ldrb r1, [r1, #17] ; 0x11 | |
695 32aee8: 4348 mul r0, r1 | |
696 32aeea: 1810 add r0, r2, r0 | |
697 32aeec: 4965 ldr r1, =0x1701dbc ; via 0x32b084 | |
698 32aeee: 1808 add r0, r1, r0 | |
699 32aef0: 4669 mov r1, sp | |
700 32aef2: 7c09 ldrb r1, [r1, #16] ; 0x10 | |
701 32aef4: 2900 cmp r1, #0 | |
702 32aef6: d001 beq 0x32aefc | |
703 32aef8: 9b03 ldr r3, [sp, #12] ; 0xc | |
704 32aefa: e000 b 0x32aefe | |
705 32aefc: 2300 mov r3, #0 | |
706 32aefe: 4669 mov r1, sp | |
707 32af00: 2205 mov r2, #5 | |
708 32af02: 700a strb r2, [r1, #0] | |
709 32af04: 4960 ldr r1, =0x32aad1 ; via 0x32b088 | |
710 32af06: 9a03 ldr r2, [sp, #12] ; 0xc | |
711 32af08: f0ce fb70 bl 0x3f95ec ; $TMSE_Reset_Timer | |
712 32af0c: b005 add sp, #20 ; 0x14 | |
713 32af0e: bd00 pop {pc} | |
714 | |
715 $rvf_stop_timer: | |
716 32af64: b500 push {lr} | |
717 32af66: b081 sub sp, #4 | |
718 32af68: 4669 mov r1, sp | |
719 32af6a: 7008 strb r0, [r1, #0] | |
720 32af6c: f786 fcd9 bl 0x2b1922 ; $rvf_get_taskid | |
721 32af70: 4669 mov r1, sp | |
722 32af72: 7048 strb r0, [r1, #1] | |
723 32af74: 2144 mov r1, #68 ; 0x44 | |
724 32af76: 4668 mov r0, sp | |
725 32af78: 7800 ldrb r0, [r0, #0] | |
726 32af7a: 4341 mul r1, r0 | |
727 32af7c: 20ff mov r0, #255 ; 0xff | |
728 32af7e: 3011 add r0, #17 ; 0x11 | |
729 32af80: 466a mov r2, sp | |
730 32af82: 7852 ldrb r2, [r2, #1] | |
731 32af84: 4350 mul r0, r2 | |
732 32af86: 1808 add r0, r1, r0 | |
733 32af88: 493e ldr r1, =0x1701dbc ; via 0x32b084 | |
734 32af8a: 1808 add r0, r1, r0 | |
735 32af8c: 2104 mov r1, #4 | |
736 32af8e: f0ce fb45 bl 0x3f961c ; $TMSE_Control_Timer | |
737 32af92: b001 add sp, #4 | |
738 32af94: bd00 pop {pc} | |
640 | 739 |
641 ; The following function takes a raw ADC VBAT measurement | 740 ; The following function takes a raw ADC VBAT measurement |
642 ; as input (R0) and returns the mV value per the calibration. | 741 ; as input (R0) and returns the mV value per the calibration. |
643 32dae8: 498b ldr r1, =0x801734 ; via 0x32dd18 | 742 32dae8: 498b ldr r1, =0x801734 ; via 0x32dd18 |
644 32daea: 880a ldrh r2, [r1, #0] | 743 32daea: 880a ldrh r2, [r1, #0] |
1963 3a15c2: d103 bne 0x3a15cc | 2062 3a15c2: d103 bne 0x3a15cc |
1964 3a15c4: 20ff mov r0, #255 ; 0xff | 2063 3a15c4: 20ff mov r0, #255 ; 0xff |
1965 3a15c6: 30b2 add r0, #178 ; 0xb2 | 2064 3a15c6: 30b2 add r0, #178 ; 0xb2 |
1966 3a15c8: f710 f969 bl 0x2b189e ; rvf_delay() | 2065 3a15c8: f710 f969 bl 0x2b189e ; rvf_delay() |
1967 3a15cc: 2003 mov r0, #3 | 2066 3a15cc: 2003 mov r0, #3 |
1968 3a15ce: f789 fcc9 bl 0x32af64 ; $rvf_stop_timer ? | 2067 3a15ce: f789 fcc9 bl 0x32af64 ; $rvf_stop_timer |
1969 3a15d2: f7f3 fb5d bl 0x394c90 ; $pwr_send_charger_plug_event ? | 2068 3a15d2: f7f3 fb5d bl 0x394c90 ; $pwr_send_charger_plug_event ? |
1970 3a15d6: f78c fc1b bl 0x32de10 ; $pwr_get_battery_type ? | 2069 3a15d6: f78c fc1b bl 0x32de10 ; $pwr_get_battery_type ? |
1971 3a15da: bd00 pop {pc} | 2070 3a15da: bd00 pop {pc} |
1972 | 2071 |
1973 $PWR_Charger_Unplug: | 2072 $PWR_Charger_Unplug: |