diff pirelli/fw-disasm @ 240:7f10fb2c17cd

pirelli/fw-disasm: spi_core() located
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 23 Dec 2017 01:38:28 +0000
parents 7a394cc1c72a
children cead37b6ff74
line wrap: on
line diff
--- a/pirelli/fw-disasm	Sat Dec 23 01:13:07 2017 +0000
+++ b/pirelli/fw-disasm	Sat Dec 23 01:38:28 2017 +0000
@@ -1046,6 +1046,78 @@
 Run address = load address + 0x7ECAEC
 for both the actual code and the trampolines
 
+$spi_core:
+  3e8ca0:	b500		push	{lr}
+  3e8ca2:	b085		sub	sp, #20	; 0x14
+  3e8ca4:	4669		mov	r1, sp
+  3e8ca6:	2000		mov	r0, #0
+  3e8ca8:	7208		strb	r0, [r1, #8]
+  3e8caa:	483a		ldr	r0, =0xa0010	; via 0x3e8d94
+  3e8cac:	9000		str	r0, [sp, #0]
+  3e8cae:	a02e		add	r0, pc, #184	; 0xb8
+  3e8cb0:	2118		mov	r1, #24	; 0x18
+  3e8cb2:	2200		mov	r2, #0
+  3e8cb4:	43d2		mvn	r2, r2
+  3e8cb6:	2305		mov	r3, #5
+  3e8cb8:	f7f1 ffbc	bl	0x3dac34
+  3e8cbc:	2034		mov	r0, #52	; 0x34
+  3e8cbe:	4936		ldr	r1, =0x1774e38	; via 0x3e8d98
+  3e8cc0:	680a		ldr	r2, [r1, #0]
+  3e8cc2:	2101		mov	r1, #1
+  3e8cc4:	5481		strb	r1, [r0, r2]
+  3e8cc6:	200c		mov	r0, #12	; 0xc
+  3e8cc8:	f7f6 fff1	bl	0x3dfcae	; $IQ_Unmask
+  3e8ccc:	f7b8 fbd6	bl	0x3a147c	; $Set_Switch_ON_Cause
+  3e8cd0:	4668		mov	r0, sp
+  3e8cd2:	7a00		ldrb	r0, [r0, #8]
+  3e8cd4:	2800		cmp	r0, #0
+  3e8cd6:	d131		bne	0x3e8d3c
+  3e8cd8:	4830		ldr	r0, =0xffff	; via 0x3e8d9c
+  3e8cda:	2100		mov	r1, #0
+  3e8cdc:	f6c8 fc18	bl	0x2b1510	; $rvf_wait
+  3e8ce0:	4669		mov	r1, sp
+  3e8ce2:	8208		strh	r0, [r1, #16]	; 0x10
+  3e8ce4:	4668		mov	r0, sp
+  3e8ce6:	8a00		ldrh	r0, [r0, #16]	; 0x10
+  3e8ce8:	0840		lsr	r0, r0, #1
+  3e8cea:	d30b		bcc	0x3e8d04
+  3e8cec:	2000		mov	r0, #0
+  3e8cee:	f5da fc81	bl	0x1c35f4	; $rvf_read_mbox
+  3e8cf2:	9003		str	r0, [sp, #12]	; 0xc
+  3e8cf4:	9803		ldr	r0, [sp, #12]	; 0xc
+  3e8cf6:	f7ec ff33	bl	0x3d5b60	; $spi_process
+  3e8cfa:	2800		cmp	r0, #0
+  3e8cfc:	d002		beq	0x3e8d04
+  3e8cfe:	9803		ldr	r0, [sp, #12]	; 0xc
+  3e8d00:	f008 fd1e	bl	0x3f1740	; $pwr_process
+  3e8d04:	4668		mov	r0, sp
+  3e8d06:	8a00		ldrh	r0, [r0, #16]	; 0x10
+  3e8d08:	0940		lsr	r0, r0, #5
+  3e8d0a:	d301		bcc	0x3e8d10
+  3e8d0c:	f6fa f8c4	bl	0x2e2e98	; $pwr_bat_test_timer_process
+  3e8d10:	4668		mov	r0, sp
+  3e8d12:	8a00		ldrh	r0, [r0, #16]	; 0x10
+  3e8d14:	0980		lsr	r0, r0, #6
+  3e8d16:	d301		bcc	0x3e8d1c
+  3e8d18:	f6f9 fe64	bl	0x2e29e4	; $pwr_CI_charge_timer_process
+  3e8d1c:	4668		mov	r0, sp
+  3e8d1e:	8a00		ldrh	r0, [r0, #16]	; 0x10
+  3e8d20:	09c0		lsr	r0, r0, #7
+  3e8d22:	d301		bcc	0x3e8d28
+  3e8d24:	f6fa f88b	bl	0x2e2e3e	; $pwr_CV_charge_timer_process
+  3e8d28:	4668		mov	r0, sp
+  3e8d2a:	8a00		ldrh	r0, [r0, #16]	; 0x10
+  3e8d2c:	0a00		lsr	r0, r0, #8
+  3e8d2e:	d301		bcc	0x3e8d34
+  3e8d30:	f7ca fe95	bl	0x3b3a5e	; $pwr_discharge_timer_process
+  3e8d34:	4668		mov	r0, sp
+  3e8d36:	7a00		ldrb	r0, [r0, #8]
+  3e8d38:	2800		cmp	r0, #0
+  3e8d3a:	d0cd		beq	0x3e8cd8
+  3e8d3c:	2000		mov	r0, #0
+  3e8d3e:	b005		add	sp, #20	; 0x14
+  3e8d40:	bd00		pop	{pc}
+
 $Application_Initialize:
   3f11f8:	b500		push	{lr}
   3f11fa:	f7ca faeb	bl	0x3bb7d4	; $Init_Target