/	Copyright (c) 1984, 1986, 1987, 1988 AT&T
/	  All Rights Reserved

/	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
/	The copyright notice above does not evidence any
/	actual or intended publication of such source code.
	.file	"syscall.s"

	.ident	"@(#)libc-i386:libc-i386/sys/syscall.s	1.3"

#include <sys.s>

	.globl	syscall
	.globl	_cerror

syscall:
	MCOUNT			/ subroutine entry counter if profiling
	pop	%edx		/ return address.
	pop	%eax		/ system call number
	pushl	%edx
	lcall	SYSCALL
	movl	0(%esp),%edx
	pushl	%edx		/ Add an extra entry to the stack
	jc	_cerror
	ret
