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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.asm/] [common.inc] - Blame information for rev 842

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
        .macro comment text
2
        .endm
3
 
4
        comment "Can't rely on assembler comment character so do this."
5
 
6
        comment "On some platforms (like HPUX), only labels are allowed"
7
        comment "to start at the first column.  Beware of this when editing"
8
        comment "the assembly files for this test."
9
 
10
        .macro include arch file
11
        .include "\arch\file"
12
        .endm
13
 
14
        comment "Declare a data variable"
15
        .macro gdbasm_datavar name value
16
        .data
17
\name:
18
        .word \value
19
        .endm
20
 
21
        comment "Declare a subroutine"
22
        .macro gdbasm_declare name
23
\name:
24
        .endm
25
 
26
        comment "End a subroutine"
27
        .macro gdbasm_end name
28
        .endm
29
 
30
        comment "arch.inc is responsible for defining the following macros:"
31
        comment "enter - subroutine prologue"
32
        comment "leave - subroutine epilogue"
33
        comment "call - call a named subroutine"
34
        comment "several_nops - execute several (typically 4) nops"
35
        comment "exit0 - exit (0)"
36
 
37
        comment "arch.inc may also override the default definitions of:"
38
        comment "datavar - define a data variable"
39
        comment "declare - declare the start of a subroutine"
40
        comment "end - end a subroutine"

powered by: WebSVN 2.1.0

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