/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	syscall_sw.h,v $
 * Revision 4.2  91/09/19  22:27:18  devbld
 * Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: syscall_sw.h,v $ $Revision: 4.2 $ (DEC) $Date: 91/09/19 22:27:18 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/* 
 * Mach Operating System
 * Copyright (c) 1989 Carnegie-Mellon University
 * Copyright (c) 1988 Carnegie-Mellon University
 * Copyright (c) 1987 Carnegie-Mellon University
 * All rights reserved.  The CMU software License Agreement specifies
 * the terms and conditions for use and redistribution.
 */
/*
 * OSF/1 Release 1.0
 */

#ifndef	_KERN_SYSCALL_SW_H_
#define _KERN_SYSCALL_SW_H_

#ifndef	ASSEMBLER

typedef struct {
	short		mach_trap_length;
	short		mach_trap_flags;
	int		(*mach_trap_function)();
} mach_trap_t;

extern mach_trap_t	mach_trap_table[];
extern int		mach_trap_count;

#define MACH_TRAP(name, arg_count, flags)	\
		{ sizeof(int) * ((arg_count)+1), (flags), (name) }
#define FF1(name,argno,flags)	MACH_TRAP(name, argno, 1<<flags)
#define FN(name, argno)		MACH_TRAP(name, argno, 0)

#endif	/* ASSEMBLER */

/*
 *	Flag values (actually bit numbers)
 */

#define ASETJMP		0
#define APSIG		2

#endif	/* _KERN_SYSCALL_SW_H_ */
