Home | History | Annotate | Line # | Download | only in gdb.asm
      1 	comment "subroutine prologue"
      2 	.macro gdbasm_enter
      3 	std %rp, -16(%sp)
      4 	copy %r3, %r1
      5 	copy %sp, %r3
      6 	std,ma %r1, 128(%sp)
      7 	.endm
      8 
      9 	comment "subroutine epilogue"
     10 	.macro gdbasm_leave
     11 	ldd -16(%r3), %rp
     12 	bve (%rp)
     13 	ldd,mb -128(%sp), %r3
     14 	.endm
     15 
     16 	.macro gdbasm_call subr
     17 	b,l	\subr , %rp
     18 	nop
     19 	.endm
     20 
     21 	.macro gdbasm_several_nops
     22 	nop
     23 	nop
     24 	nop
     25 	nop
     26 	.endm
     27 
     28 	comment "exit (0)"
     29 	.macro gdbasm_exit0
     30 	comment "Don't know how to exit, but this will certainly halt..."
     31 	ldw	0(%r0), %r1
     32 	.endm
     33 
     34 	comment "crt0 startup"
     35 	.macro gdbasm_startup
     36 	.align 8
     37 	.endm
     38 
     39 	comment "Declare a data variable"
     40 	.purgem gdbasm_datavar
     41 	.macro gdbasm_datavar name value
     42 	.data
     43 \name:
     44 	.long	\value
     45 	.endm
     46 
     47