OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [testsuite/] [gdb.asm/] [pa.inc] - Blame information for rev 835

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
        comment "subroutine prologue"
2
        .macro gdbasm_enter
3
        stw %rp, -20(%sp)
4
        copy %r3, %r1
5
        copy %sp, %r3
6
        stwm %r1, 64(%sp)
7
        .endm
8
 
9
        comment "subroutine epilogue"
10
        .macro gdbasm_leave
11
        ldw -20(%r3), %rp
12
        bv %r0(%rp)
13
        ldwm -64(%sp), %r3
14
        .endm
15
 
16
        .macro gdbasm_call subr
17
        bl      \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 4
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.