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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [rs6000/] [sol-syscall.S] - Blame information for rev 862

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

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * solaris-syscall.S -- System call stubs for Solaris.
3
 *
4
 * Copyright (c) 1996 Cygnus Support
5
 *
6
 * The authors hereby grant permission to use, copy, modify, distribute,
7
 * and license this software and its documentation for any purpose, provided
8
 * that existing copyright notices are retained in all copies and that this
9
 * notice is included verbatim in any distributions. No written agreement,
10
 * license, or royalty fee is required for any of the authorized uses.
11
 * Modifications to this software may be copyrighted by their authors
12
 * and need not follow the licensing terms described here, provided that
13
 * the new terms are clearly indicated on the first page of each file where
14
 * they apply.
15
 */
16
 
17
#include "ppc-asm.h"
18
 
19
        .file   "solaris-syscall.S"
20
 
21
#define SYS_syscall             0
22
#define SYS_exit                1
23
#define SYS_fork                2
24
#define SYS_read                3
25
#define SYS_write               4
26
#define SYS_open                5
27
#define SYS_close               6
28
#define SYS_wait                7
29
#define SYS_creat               8
30
#define SYS_link                9
31
#define SYS_unlink              10
32
#define SYS_exec                11
33
#define SYS_chdir               12
34
#define SYS_time                13
35
#define SYS_mknod               14
36
#define SYS_chmod               15
37
#define SYS_chown               16
38
#define SYS_brk                 17
39
#define SYS_stat                18
40
#define SYS_lseek               19
41
#define SYS_getpid              20
42
#define SYS_mount               21
43
#define SYS_umount              22
44
#define SYS_setuid              23
45
#define SYS_getuid              24
46
#define SYS_stime               25
47
#define SYS_ptrace              26
48
#define SYS_alarm               27
49
#define SYS_fstat               28
50
#define SYS_pause               29
51
#define SYS_utime               30
52
#define SYS_stty                31
53
#define SYS_gtty                32
54
#define SYS_access              33
55
#define SYS_nice                34
56
#define SYS_statfs              35
57
#define SYS_sync                36
58
#define SYS_kill                37
59
#define SYS_fstatfs             38
60
#define SYS_pgrpsys             39
61
#define SYS_xenix               40
62
#define SYS_dup                 41
63
#define SYS_pipe                42
64
#define SYS_times               43
65
#define SYS_profil              44
66
#define SYS_plock               45
67
#define SYS_setgid              46
68
#define SYS_getgid              47
69
#define SYS_signal              48
70
#define SYS_msgsys              49
71
#define SYS_syssun              50
72
#define SYS_sysi86              50
73
#define SYS_sysppc              50
74
#define SYS_acct                51
75
#define SYS_shmsys              52
76
#define SYS_semsys              53
77
#define SYS_ioctl               54
78
#define SYS_uadmin              55
79
#define SYS_utssys              57
80
#define SYS_fdsync              58
81
#define SYS_execve              59
82
#define SYS_umask               60
83
#define SYS_chroot              61
84
#define SYS_fcntl               62
85
#define SYS_ulimit              63
86
#define SYS_rmdir               79
87
#define SYS_mkdir               80
88
#define SYS_getdents            81
89
#define SYS_sysfs               84
90
#define SYS_getmsg              85
91
#define SYS_putmsg              86
92
#define SYS_poll                87
93
#define SYS_lstat               88
94
#define SYS_symlink             89
95
#define SYS_readlink            90
96
#define SYS_setgroups           91
97
#define SYS_getgroups           92
98
#define SYS_fchmod              93
99
#define SYS_fchown              94
100
#define SYS_sigprocmask         95
101
#define SYS_sigsuspend          96
102
#define SYS_sigaltstack         97
103
#define SYS_sigaction           98
104
#define SYS_sigpending          99
105
#define SYS_context             100
106
#define SYS_evsys               101
107
#define SYS_evtrapret           102
108
#define SYS_statvfs             103
109
#define SYS_fstatvfs            104
110
#define SYS_nfssys              106
111
#define SYS_waitsys             107
112
#define SYS_sigsendsys          108
113
#define SYS_hrtsys              109
114
#define SYS_acancel             110
115
#define SYS_async               111
116
#define SYS_priocntlsys         112
117
#define SYS_pathconf            113
118
#define SYS_mincore             114
119
#define SYS_mmap                115
120
#define SYS_mprotect            116
121
#define SYS_munmap              117
122
#define SYS_fpathconf           118
123
#define SYS_vfork               119
124
#define SYS_fchdir              120
125
#define SYS_readv               121
126
#define SYS_writev              122
127
#define SYS_xstat               123
128
#define SYS_lxstat              124
129
#define SYS_fxstat              125
130
#define SYS_xmknod              126
131
#define SYS_clocal              127
132
#define SYS_setrlimit           128
133
#define SYS_getrlimit           129
134
#define SYS_lchown              130
135
#define SYS_memcntl             131
136
#define SYS_getpmsg             132
137
#define SYS_putpmsg             133
138
#define SYS_rename              134
139
#define SYS_uname               135
140
#define SYS_setegid             136
141
#define SYS_sysconfig           137
142
#define SYS_adjtime             138
143
#define SYS_systeminfo          139
144
#define SYS_seteuid             141
145
#define SYS_vtrace              142
146
#define SYS_fork1               143
147
#define SYS_sigtimedwait        144
148
#define SYS_lwp_info            145
149
#define SYS_yield               146
150
#define SYS_lwp_sema_wait       147
151
#define SYS_lwp_sema_post       148
152
#define SYS_modctl              152
153
#define SYS_fchroot             153
154
#define SYS_utimes              154
155
#define SYS_vhangup             155
156
#define SYS_gettimeofday        156
157
#define SYS_getitimer           157
158
#define SYS_setitimer           158
159
#define SYS_lwp_create          159
160
#define SYS_lwp_exit            160
161
#define SYS_lwp_suspend         161
162
#define SYS_lwp_continue        162
163
#define SYS_lwp_kill            163
164
#define SYS_lwp_self            164
165
#define SYS_lwp_setprivate      165
166
#define SYS_lwp_getprivate      166
167
#define SYS_lwp_wait            167
168
#define SYS_lwp_mutex_unlock    168
169
#define SYS_lwp_mutex_lock      169
170
#define SYS_lwp_cond_wait       170
171
#define SYS_lwp_cond_signal     171
172
#define SYS_lwp_cond_broadcast  172
173
#define SYS_pread               173
174
#define SYS_pwrite              174
175
#define SYS_llseek              175
176
#define SYS_inst_sync           176
177
#define SYS_kaio                178
178
#define SYS_tsolsys             184
179
#define SYS_acl                 185
180
#define SYS_auditsys            186
181
#define SYS_processor_bind      187
182
#define SYS_processor_info      188
183
#define SYS_p_online            189
184
#define SYS_sigqueue            190
185
#define SYS_clock_gettime       191
186
#define SYS_clock_settime       192
187
#define SYS_clock_getres        193
188
#define SYS_timer_create        194
189
#define SYS_timer_delete        195
190
#define SYS_timer_settime       196
191
#define SYS_timer_gettime       197
192
#define SYS_timer_getoverrun    198
193
#define SYS_nanosleep           199
194
#define SYS_facl                200
195
#define SYS_door                201
196
#define SYS_setreuid            202
197
#define SYS_setregid            203
198
#define SYS_install_utrap       204
199
#define SYS_signotifywait       210
200
#define SYS_lwp_sigredirect     211
201
#define SYS_lwp_alarm           212
202
 
203
                .text
204
FUNC_START(_exit)
205
        li      r0,SYS_exit
206
        sc
207
 
208
/*
209
 * Insure that the debugger tells the client that the PC is in _exit,
210
 * not whatever function happens to follow this function.
211
 */
212
 
213
0:      trap
214
        b       0b                      /* we never should return, but... */
215
FUNC_END(_exit)
216
 
217
#define SYSCALL(syscall,name) \
218
FUNC_START(name); \
219
        li      r0,syscall; \
220
        sc; \
221
        bns+ 0f; \
222
        b FUNC_NAME(_cerror); \
223
0:      blr; \
224
FUNC_END(name)
225
 
226
SYSCALL(SYS_access,access)
227
SYSCALL(SYS_alarm,alarm)
228
SYSCALL(SYS_brk,brk)
229
SYSCALL(SYS_chdir,chdir)
230
SYSCALL(SYS_chmod,chomd)
231
SYSCALL(SYS_chown,chown)
232
SYSCALL(SYS_close,close)
233
SYSCALL(SYS_creat,creat)
234
SYSCALL(SYS_dup,dup)
235
SYSCALL(SYS_exec,exec)
236
SYSCALL(SYS_fork,fork)
237
SYSCALL(SYS_fstat,_fstat)
238
SYSCALL(SYS_getpid,getpid)
239
SYSCALL(SYS_ioctl,ioctl)
240
SYSCALL(SYS_kill,kill)
241
SYSCALL(SYS_link,link)
242
SYSCALL(SYS_lseek,lseek)
243
SYSCALL(SYS_nice,nice)
244
SYSCALL(SYS_open,open)
245
SYSCALL(SYS_pause,pause)
246
SYSCALL(SYS_pipe,pipe)
247
SYSCALL(SYS_ptrace,ptrace)
248
SYSCALL(SYS_read,read)
249
SYSCALL(SYS_signal,signal)
250
SYSCALL(SYS_stat,_stat)
251
SYSCALL(SYS_sync,sync)
252
SYSCALL(SYS_sysppc,sysppc)
253
SYSCALL(SYS_time,time)
254
SYSCALL(SYS_times,times)
255
SYSCALL(SYS_unlink,unlink)
256
SYSCALL(SYS_wait,wait)
257
SYSCALL(SYS_write,write)
258
SYSCALL(SYS_umask,umask)
259
SYSCALL(SYS_execve,execve)
260
SYSCALL(SYS_fcntl,fcntl)
261
SYSCALL(SYS_ulimit,ulimit)
262
SYSCALL(SYS_mkdir,mkdir)
263
SYSCALL(SYS_rmdir,rmdir)
264
SYSCALL(SYS_getdents,getdents)
265
SYSCALL(SYS_lstat,_lstat)
266
SYSCALL(SYS_symlink,symlink)
267
SYSCALL(SYS_readlink,readlink)
268
SYSCALL(SYS_sigprocmask,sigprocmask)
269
SYSCALL(SYS_sigsuspend,sigsuspend)
270
SYSCALL(SYS_sigaction,sigaction)
271
SYSCALL(SYS_mmap,mmap)
272
SYSCALL(SYS_mprotect,mprotect)
273
SYSCALL(SYS_munmap,munmap)
274
SYSCALL(SYS_fpathconf,fpathconf)
275
SYSCALL(SYS_vfork,vfork)
276
SYSCALL(SYS_setrlimit,setrlimit)
277
SYSCALL(SYS_getrlimit,getrlimit)
278
SYSCALL(SYS_rename,rename)
279
SYSCALL(SYS_utimes,utimes)
280
SYSCALL(SYS_gettimeofday,gettimeofday)

powered by: WebSVN 2.1.0

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