2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 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 2004 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Internal ISA-dependent functions. 2N/A * Note that some ISA-dependent functions are exposed to applications, and found 2N/A * ISA dependent function to determine if the instruction at the given address 2N/A * is a syscall instruction. On x86, we have multiple system call instructions. 2N/A * this function returns 1 if there is a system call at the given address, 2 if 2N/A * there is a less preferred system call, and 0 if there is no system call 2N/A * Works the same way as Pissyscall(), except operates on an in-memory buffer. 2N/A/* amd64 stack doubleword aligned, unaligned in 32-bit mode */ 2N/A/* i386 stack is unaligned */ 2N/A/* sparc stack is doubleword aligned for 64-bit values */ 2N/A * Given an argument count, stack pointer, and syscall index, sets up the stack 2N/A * and appropriate registers. The stack pointer should be the top of the stack 2N/A * area, after any space reserved for arguments passed by reference. Returns a 2N/A * pointer which is later passed to Psyscall_copyargs(). 2N/A * Copies all arguments out to the stack once we're stopped before the syscall. 2N/A * Copies out arguments to their original values. 2N/A#
endif /* _PISADEP_H */