1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. 9 * 10 * %sccs.include.redist.c% 11 */ 12 13#if defined(SYSLIBC_SCCS) && !defined(lint) 14 .asciz "@(#)syscall.s 8.2 (Berkeley) 01/21/94" 15#endif /* SYSLIBC_SCCS and not lint */ 16 17#include "SYS.h" 18 19ENTRY(syscall) 20 movl 4(ap),r0 # syscall number 21 subl3 $1,(ap)+,(ap) # one fewer arguments 22 chmk r0 23 jcs 1f 24 ret 251: 26 jmp cerror 27