date and time created 92/02/29 12:55:38 by bostic
[unix-history] / usr / src / lib / libc / mips / SYS.h
CommitLineData
6b397f2b
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Ralph Campbell.
7 *
8 * %sccs.include.redist.c%
9 *
10 * @(#)SYS.h 5.1 (Berkeley) %G%
11 */
12
13#include <sys/syscall.h>
14#include "DEFS.h"
15
16/* vax/tahoe compat */
17#define ret
18#define r0 v0
19#define r1 v1
20
21#define SYSCALL(x) LEAF(x); li v0,SYS_/**/x; syscall; bne a3,zero,err; \
22 j ra; err: j _cerror; END(x);
23#define PSEUDO(x,y) LEAF(x); li v0,SYS_/**/y; syscall; bne a3,zero,err; \
24 j ra; err: j _cerror; END(x);