]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/arch/arm/mach-lpc21xx/libs/iap/iap_asm.S
Update of system-less architecture and board support code to actual uLAN.sf.net version.
[lincan.git] / embedded / arch / arm / mach-lpc21xx / libs / iap / iap_asm.S
1 .global iap_asm_entry
2 .func iap_asm_entry
3
4 #if defined(__thumb__) && !defined(__THUMB_INTERWORK__)
5         .code 16
6         .align  0
7         .thumb_func
8         .type   iap_asm_entry, %function
9 iap_asm_entry:
10         bx      pc
11         nop
12         .code 32
13 #else
14         .code 32
15         .type   iap_asm_entry, %function
16 iap_asm_entry:
17 #endif
18         stmfd   sp!,{r1, r2, lr}
19         adr     lr,iap_asm_exit
20         ldr     r2,=0x7FFFFFF1
21         bx      r2
22
23 iap_asm_exit:
24         ldmfd   sp!,{r1, r2, lr}
25         bx      lr
26 .endfunc
27 .end