FreeCalypso > hg > freecalypso-tools
comparison target-utils/c139-lldbg/entry.S @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
1 .text | |
2 .globl _entry | |
3 _entry: | |
4 .code 16 | |
5 bx pc | |
6 nop | |
7 | |
8 .code 32 | |
9 stmfd sp!, {r0-r12,lr} | |
10 mrs r0, CPSR | |
11 mov r1, sp | |
12 /* supervisor mode, disable all interrupts */ | |
13 msr CPSR_c, #0xd3 | |
14 ldr sp, =stack_bottom | |
15 /* save entry SP and CPSR */ | |
16 ldr r2, =lldbg_entry_cpsr | |
17 str r0, [r2] | |
18 ldr r2, =lldbg_entry_sp | |
19 str r1, [r2] | |
20 b main |