xref: /csrg-svn/lib/libc/vax/sys/syscall.s (revision 65766)
121894Sdist/*
261222Sbostic * Copyright (c) 1983, 1993
361222Sbostic *	The Regents of the University of California.  All rights reserved.
4*65766Sbostic * (c) UNIX System Laboratories, Inc.
5*65766Sbostic * All or some portions of this file are derived from material licensed
6*65766Sbostic * to the University of California by American Telephone and Telegraph
7*65766Sbostic * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8*65766Sbostic * the permission of UNIX System Laboratories, Inc.
934391Sbostic *
1042642Sbostic * %sccs.include.redist.c%
1121894Sdist */
129523Smckusick
1334391Sbostic#if defined(SYSLIBC_SCCS) && !defined(lint)
14*65766Sbostic	.asciz "@(#)syscall.s	8.2 (Berkeley) 01/21/94"
1534391Sbostic#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