one too many levels of indirection (from ks@purdue)
[unix-history] / usr / src / lib / libc / vax / sys / syscall.s
CommitLineData
c69b1c1f
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
7f0e38f0 8_sccsid:.asciz "@(#)syscall.s 5.2 (Berkeley) %G%"
c69b1c1f 9#endif not lint
7701b70b
KM
10
11#include "SYS.h"
12
13ENTRY(syscall)
14 movl 4(ap),r0 # syscall number
15 subl3 $1,(ap)+,(ap) # one fewer arguments
16 chmk r0
6cad8bfb 17 jcs 1f
7701b70b 18 ret
6cad8bfb
SL
191:
20 jmp cerror