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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [m32c/] [syscall.h] - Blame information for rev 307

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

Line No. Rev Author Line
1 227 jeremybenn
/* Copied from libgloss */
2
/* General use syscall.h file.
3
   The more ports that use this file, the simpler sim/common/nltvals.def
4
   remains.  */
5
 
6
#ifndef LIBGLOSS_SYSCALL_H
7
#define LIBGLOSS_SYSCALL_H
8
 
9
/* Note: This file may be included by assembler source.  */
10
 
11
/* These should be as small as possible to allow a port to use a trap type
12
   instruction, which the system call # as the trap (the d10v for instance
13
   supports traps 0..31).  An alternative would be to define one trap for doing
14
   system calls, and put the system call number in a register that is not used
15
   for the normal calling sequence (so that you don't have to shift down the
16
   arguments to add the system call number).  Obviously, if these system call
17
   numbers are ever changed, all of the simulators and potentially user code
18
   will need to be updated.  */
19
 
20
/* There is no current need for the following: SYS_execv, SYS_creat, SYS_wait,
21
   etc. etc.  Don't add them.  */
22
 
23
/* These are required by the ANSI C part of newlib (excluding system() of
24
   course).  */
25
#define SYS_exit        1
26
#define SYS_open        2
27
#define SYS_close       3
28
#define SYS_read        4
29
#define SYS_write       5
30
#define SYS_lseek       6
31
#define SYS_unlink      7
32
#define SYS_getpid      8
33
#define SYS_kill        9
34
#define SYS_fstat       10
35
/*#define SYS_sbrk      11 - not currently a system call, but reserved.  */
36
 
37
/* ARGV support.  */
38
#define SYS_argvlen     12
39
#define SYS_argv        13
40
 
41
/* These are extras added for one reason or another.  */
42
#define SYS_chdir        14
43
#define SYS_stat         15
44
#define SYS_chmod        16
45
#define SYS_utime        17
46
#define SYS_time         18
47
#define SYS_gettimeofday 19
48
#define SYS_times        20
49
#define SYS_link         21
50
#endif

powered by: WebSVN 2.1.0

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