1/* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8#if defined(SYSLIBC_SCCS) && !defined(lint) 9 .asciz "@(#)syscall.s 5.6 (Berkeley) 06/01/90" 10#endif /* SYSLIBC_SCCS and not lint */ 11 12#include "SYS.h" 13 14ENTRY(syscall) 15 movl 4(ap),r0 # syscall number 16 subl3 $1,(ap)+,(ap) # one fewer arguments 17 chmk r0 18 jcs 1f 19 ret 201: 21 jmp cerror 22