comparison lldbg/entry.S @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
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