comparison gsm-fw/lldbg/entry.S @ 865:f5affe83ba2d

lldbg hack (poor girl's substitute for JTAG) implemented
author Space Falcon <falcon@ivan.Harhan.ORG>
date Fri, 15 May 2015 00:02:03 +0000
parents
children
comparison
equal deleted inserted replaced
864:4fa939eada22 865:f5affe83ba2d
1 .section "ext.ram","aw",%nobits
2 .balign 4
3 .globl lldbg_stack
4 lldbg_stack:
5 .space 2048
6 lldbg_init_sp:
7
8 .text
9 .code 32
10 .globl lldbg_entry
11 lldbg_entry:
12 stmfd sp!, {r0-r12,lr}
13 mrs r0, CPSR
14 mov r1, sp
15 /* supervisor mode, disable all interrupts */
16 msr CPSR_c, #0xd3
17 ldr sp, =lldbg_init_sp
18 /* save entry SP and CPSR */
19 ldr r2, =lldbg_entry_cpsr
20 str r0, [r2]
21 ldr r2, =lldbg_entry_sp
22 str r1, [r2]
23 b lldbg_main