xref: /original-bsd/lib/libc/vax/sys/syscall.s (revision 5000927f)
1/*
2 * Copyright (c) 1983, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(SYSLIBC_SCCS) && !defined(lint)
9	.asciz "@(#)syscall.s	8.1 (Berkeley) 06/04/93"
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