1 /* General use syscall.h file.
2 The more ports that use this file, the simpler sim/common/nltvals.def
5 #ifndef LIBGLOSS_SYSCALL_H
6 #define LIBGLOSS_SYSCALL_H
8 /* Note: This file may be included by assembler source. */
10 /* These should be as small as possible to allow a port to use a trap type
11 instruction, which the system call # as the trap (the d10v for instance
12 supports traps 0..31). An alternative would be to define one trap for doing
13 system calls, and put the system call number in a register that is not used
14 for the normal calling sequence (so that you don't have to shift down the
15 arguments to add the system call number). Obviously, if these system call
16 numbers are ever changed, all of the simulators and potentially user code
17 will need to be updated. */
19 /* There is no current need for the following: SYS_execv, SYS_creat, SYS_wait,
20 etc. etc. Don't add them. */
22 /* These are required by the ANSI C part of newlib (excluding system() of
34 /*#define SYS_sbrk 11 - not currently a system call, but reserved. */
37 #define SYS_argvlen 12
40 /* These are extras added for one reason or another. */
46 #define SYS_gettimeofday 19