FreeCalypso > hg > freecalypso-citrine
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lldbg/entry.S Thu Jun 09 00:02:41 2016 +0000 @@ -0,0 +1,23 @@ + .section "ext.ram","aw",%nobits + .balign 4 + .globl lldbg_stack +lldbg_stack: + .space 2048 +lldbg_init_sp: + + .text + .code 32 + .globl lldbg_entry +lldbg_entry: + stmfd sp!, {r0-r12,lr} + mrs r0, CPSR + mov r1, sp + /* supervisor mode, disable all interrupts */ + msr CPSR_c, #0xd3 + ldr sp, =lldbg_init_sp + /* save entry SP and CPSR */ + ldr r2, =lldbg_entry_cpsr + str r0, [r2] + ldr r2, =lldbg_entry_sp + str r1, [r2] + b lldbg_main