/*
* 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.
*/
#include "SYS.h"
/*
* On x86, the implementation of the two are the same, the only
* difference being that _syscall6 is not an exported symbol.
*/
#if defined(_SYSC_INSN)
call 8f
9:
#else
int $T_SYSCALLINT
#endif
/*
* On x86, the implementation of the two are the same, the only
* difference being that __systemcall6 is not an exported symbol.
*
* WARNING WARNING WARNING:
* The int $T_SYSCALL instruction below is needed by /proc when it scans a
* controlled process's text for a syscall instruction. It must be present in
* all libc variants because /proc cannot use an optimized syscall instruction
* to enter the kernel; optimized syscalls could be disabled by private LDT use.
* We must leave at least one int $T_SYSCALLINT in the text for /proc to find
* (see the Pscantext() routine).
*/
int $T_SYSCALLINT
jae 1f
1:
2: