121894Sdist/* 221894Sdist * Copyright (c) 1983 Regents of the University of California. 334391Sbostic * All rights reserved. 434391Sbostic * 5*42642Sbostic * %sccs.include.redist.c% 621894Sdist */ 79523Smckusick 834391Sbostic#if defined(SYSLIBC_SCCS) && !defined(lint) 9*42642Sbostic .asciz "@(#)syscall.s 5.6 (Berkeley) 06/01/90" 1034391Sbostic#endif /* SYSLIBC_SCCS and not lint */ 1121894Sdist 129523Smckusick#include "SYS.h" 139523Smckusick 149523SmckusickENTRY(syscall) 159523Smckusick movl 4(ap),r0 # syscall number 169523Smckusick subl3 $1,(ap)+,(ap) # one fewer arguments 179523Smckusick chmk r0 1813428Ssam jcs 1f 199523Smckusick ret 2013428Ssam1: 2113428Ssam jmp cerror 22