/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* C library -- int syscall(int sysnum, ...);
* C library -- int __systemcall(sysret_t *, int sysnum, ...);
*
* Interpret a given system call
*
* This version handles up to 8 'long' arguments to a system call.
*
* Even though indirect system call support exists in the SPARC
* 32-bit kernel, we want to eliminate it in a future release,
* so the real trap for the desired system call is issued right here.
*
* Even though %g5 can be used as a scratch register for sparcv9, we don't
* use it here because this code is shared between sparcv8 and sparcv9.
*/
#include "SYS.h"
1:
/*
* Same as _syscall(), but restricted to 6 syscall arguments
* so it doesn't need to incur the overhead of a register window.
* Implemented for use only within libc; symbol is not exported.
*/
ba 2f
1:
2:
/*
* Same as __systemcall(), but restricted to 6 syscall arguments
* so it doesn't need to incur the overhead of a register window.
* Implemented for use only within libc; symbol is not exported.
*/
1: