121894Sdist/* 221894Sdist * Copyright (c) 1983 Regents of the University of California. 3*34391Sbostic * All rights reserved. 4*34391Sbostic * 5*34391Sbostic * Redistribution and use in source and binary forms are permitted 6*34391Sbostic * provided that this notice is preserved and that due credit is given 7*34391Sbostic * to the University of California at Berkeley. The name of the University 8*34391Sbostic * may not be used to endorse or promote products derived from this 9*34391Sbostic * software without specific written prior permission. This software 10*34391Sbostic * is provided ``as is'' without express or implied warranty. 1121894Sdist */ 129523Smckusick 13*34391Sbostic#if defined(SYSLIBC_SCCS) && !defined(lint) 14*34391Sbostic_sccsid:.asciz "@(#)syscall.s 5.4 (Berkeley) 05/20/88" 15*34391Sbostic#endif /* SYSLIBC_SCCS and not lint */ 1621894Sdist 179523Smckusick#include "SYS.h" 189523Smckusick 199523SmckusickENTRY(syscall) 209523Smckusick movl 4(ap),r0 # syscall number 219523Smckusick subl3 $1,(ap)+,(ap) # one fewer arguments 229523Smckusick chmk r0 2313428Ssam jcs 1f 249523Smckusick ret 2513428Ssam1: 2613428Ssam jmp cerror 27