/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
!
! "@(#)SYS.h 1.14 88/02/08"
!
#include <machine/asm_linkage.h>
#include "PIC.h"
restartable system calls */
#define SYSCALL(x) \
ENTRY(x); \
t 8; \
#define BSDSYSCALL(x) \
ENTRY(_/**/x); \
t 8; \
/*
* SYSREENTRY provides the entry sequence for restartable system calls.
*/
#define SYSREENTRY(x) \
ENTRY(x); \
.restart_/**/x:
#define PSEUDO(x, y) \
ENTRY(x); \
t 8;
/*
* SYSCALL_RESTART provides the most common restartable system call sequence.
*/
#define SYSCALL_RESTART(x) \
SYSREENTRY(x); \
t 8; \
/*
* SYSREENTRY provides the entry sequence for restartable system calls.
*/
#define SYSREENTRY(x) \
ENTRY(x); \
.restart_/**/x:
/*
* SYSRESTART provides the error handling sequence for restartable
* system calls.
*/
#ifdef PIC
#define SYSRESTART(x) \
be,a x; \
.empty; \
#else
#define SYSRESTART(x) \
be,a x; \
.empty; \
#endif
#ifdef PIC
.empty; \
.empty; \
#else
.empty; \
.empty;\
#endif