Upload Tizen:Base source
[external/gdb.git] / gdb / testsuite / gdb.asm / arm.inc
1         comment "subroutine prologue"
2         .macro gdbasm_enter
3         mov ip, sp
4         stmdb sp!, {fp, ip, lr, pc}
5         sub fp, ip, #4
6         .endm
7
8         comment "subroutine epilogue"
9         .macro gdbasm_leave
10         ldmea fp, {fp, sp, pc}
11         .endm
12
13         .macro gdbasm_call subr
14         bl \subr
15         .endm
16
17         .macro gdbasm_several_nops
18         nop
19         nop
20         nop
21         nop
22         .endm
23
24         comment "exit (0)"
25         .macro gdbasm_exit0
26         mov r0, #0
27         swi 0x00123456
28         .endm
29
30         comment "crt0 startup"
31         .macro gdbasm_startup
32         mov fp, #0
33         mov r7, #0
34         .endm
35