aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/aarch64.inc
blob: 0144cdca9db66c66ed6409862ccfae557e38d467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	comment "subroutine prologue"
	.macro gdbasm_enter
	stp x29, x30, [sp,#-32]!
	mov x29, sp
	.endm

	comment "subroutine epilogue"
	.macro gdbasm_leave
	ldp	x29, x30, [sp],#32
	ret
	.endm

	.macro gdbasm_call subr
	bl \subr
	.endm

	.macro gdbasm_several_nops
	nop
	nop
	nop
	nop
	.endm

	comment "exit (0)"
	.macro gdbasm_exit0
	mov x8, #93
	svc 0
	.endm

	comment "crt0 startup"
	.macro gdbasm_startup
	mov x0, sp
	.endm