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