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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [a29khif/] [sys/] [sysmac.h] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
; @(#)sysmac.h  1.7 90/10/14 20:56:17, Copyright 1988, 1989, 1990 AMD
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
; Copyright 1988, 1989, 1990 Advanced Micro Devices, Inc.
4
;
5
; This software is the property of Advanced Micro Devices, Inc  (AMD)  which
6
; specifically  grants the user the right to modify, use and distribute this
7
; software provided this notice is not removed or altered.  All other rights
8
; are reserved by AMD.
9
;
10
; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
11
; SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
12
; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
13
; USE OF THIS SOFTWARE.
14
;
15
; So that all may benefit from your experience, please report  any  problems
16
; or  suggestions about this software to the 29K Technical Support Center at
17
; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131  in  the  UK,  or
18
; 0031-11-1129 in Japan, toll free.  The direct dial number is 512-462-4118.
19
;
20
; Advanced Micro Devices, Inc.
21
; 29K Support Products
22
; Mail Stop 573
23
; 5900 E. Ben White Blvd.
24
; Austin, TX 78741
25
; 800-292-9263
26
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
27
;
28
; sysmac.h
29
;
30
        .include        "sys/proreg.h"
31
 
32
;       Supported system call function numbers - BSD emulation
33
 
34
        .equ    BSD_exit,         1
35
        .equ    BSD_open,         5
36
        .equ    BSD_close,        6
37
        .equ    BSD_remove,      10
38
        .equ    BSD_lseek,       19
39
        .equ    BSD_sbrk,        69
40
        .equ    BSD_readv,      120
41
        .equ    BSD_writev,     121
42
        .equ    BSD_rename,     128
43
;                       Functions above 0x100 are handled by Am29000 code
44
        .equ    BSD_alloc,      0x101
45
        .equ    BSD_free,       0x102
46
        .equ    BSD_getpagesize,        0x103
47
 
48
        .equ    BSD_clock,      0x111
49
 
50
;       Supported system call function numbers - HIF version 2.0
51
 
52
        .equ    HIF_exit,       0x01
53
 
54
        .equ    HIF_open,       0x11
55
        .equ    HIF_close,      0x12
56
        .equ    HIF_read,       0x13
57
        .equ    HIF_write,      0x14
58
        .equ    HIF_lseek,      0x15
59
        .equ    HIF_remove,     0x16
60
        .equ    HIF_rename,     0x17
61
        .equ    HIF_ioctl,      0x18
62
        .equ    HIF_iowait,     0x19
63
        .equ    HIF_iostat,     0x1a
64
 
65
        .equ    HIF_tmpnam,     0x21
66
 
67
        .equ    HIF_time,       0x31
68
 
69
        .equ    HIF_getenv,     0x41
70
        .equ    HIF_gettz,      0x43
71
 
72
        .equ    HIF_sysalloc,   0x101
73
        .equ    HIF_alloc,      HIF_sysalloc    ;Synonym.
74
        .equ    HIF_sysfree,    0x102
75
        .equ    HIF_free,       HIF_sysfree     ;Synonym.
76
        .equ    HIF_getpsize,   0x103
77
        .equ    HIF_getpagesize,HIF_getpsize    ;Synonym.
78
        .equ    HIF_getargs,    0x104
79
 
80
        .equ    HIF_clock,      0x111
81
        .equ    HIF_cycles,     0x112
82
 
83
        .equ    HIF_setvec,     0x121
84
        .equ    HIF_settrap,    0x122
85
        .equ    HIF_setim,      0x123
86
 
87
        .equ    HIF_query,      0x131
88
 
89
        .equ    HIF_signal,     0x141
90
        .equ    HIF_sigdfl,     0x142
91
        .equ    HIF_sigret,     0x143
92
        .equ    HIF_sigrep,     0x144
93
        .equ    HIF_sigskp,     0x145
94
        .equ    HIF_sendsig,    0x146
95
 
96
;Maintain compatibility with HIF 1.0 code.
97
 
98
        .equ    EPI_exit,       HIF_exit
99
 
100
        .equ    EPI_open,       HIF_open
101
        .equ    EPI_close,      HIF_close
102
        .equ    EPI_read,       HIF_read
103
        .equ    EPI_write,      HIF_write
104
        .equ    EPI_lseek,      HIF_lseek
105
        .equ    EPI_remove,     HIF_remove
106
        .equ    EPI_rename,     HIF_rename
107
 
108
        .equ    EPI_tmpnam,     HIF_tmpnam
109
 
110
        .equ    EPI_time,       HIF_time
111
 
112
        .equ    EPI_getenv,     HIF_getenv
113
        .equ    EPI_gettz,      HIF_gettz
114
        .equ    EPI_alloc,      HIF_sysalloc
115
        .equ    EPI_free,       HIF_sysfree
116
        .equ    EPI_getpagesize,        HIF_getpsize
117
        .equ    EPI_getargs,    HIF_getargs
118
 
119
        .equ    EPI_clock,      HIF_clock
120
        .equ    EPI_cycles,     HIF_cycles
121
 
122
        .equ    EPI_setvec,     HIF_setvec
123
 
124
        .equ    V_SYSCALL, 69
125
 
126
;               System call macros
127
/* Now that source files have been sed'd to avoid these macros, they
128
   are just commented out.  -- gnu@cygnus.com  Oct 90
129
 
130
        .ifdef  _BSD_OS
131
          .equ  V_SYSCALL, 66
132
        .else
133
          .equ  V_SYSCALL, 69
134
        .endif
135
 
136
        .macro  syscall, name
137
          .ifdef        _BSD_OS
138
            const         tav, SYS_@name
139
          .else
140
            const         tav, HIF_@name
141
          .endif
142
          asneq         V_SYSCALL, gr1, gr1
143
        .endm
144
 
145
; error return
146
;   set errno to the error value in tav.
147
;   return -1
148
;
149
        .macro  returnerr
150
;;        .extern       _errno          ; rather have undef'd sym than multiple def's
151
          const         tpc, _errno
152
          consth        tpc, _errno
153
          store         0, 0, tav, tpc
154
          jmpi          lr0
155
          constn        v0, -1
156
        .endm
157
 
158
; package the most common case in one macro
159
;
160
        .macro  system, name
161
          syscall       name
162
          jmpti         tav, lr0
163
            returnerr
164
        .endm
165
 */

powered by: WebSVN 2.1.0

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