cdefs.h revision 202105
1109864Sjeff/* $NetBSD: cdefs.h,v 1.12 2006/08/27 19:04:30 matt Exp $ */ 2109864Sjeff 3109864Sjeff/* 4109864Sjeff * Copyright (c) 1995 Carnegie-Mellon University. 5109864Sjeff * All rights reserved. 6109864Sjeff * 7109864Sjeff * Author: Chris G. Demetriou 8109864Sjeff * 9109864Sjeff * Permission to use, copy, modify and distribute this software and 10109864Sjeff * its documentation is hereby granted, provided that both the copyright 11109864Sjeff * notice and this permission notice appear in all copies of the 12109864Sjeff * software, derivative works or modified versions, and any portions 13109864Sjeff * thereof, and that both notices appear in supporting documentation. 14109864Sjeff * 15109864Sjeff * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16109864Sjeff * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17109864Sjeff * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18109864Sjeff * 19109864Sjeff * Carnegie Mellon requests users of this software to return to 20109864Sjeff * 21109864Sjeff * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22109864Sjeff * School of Computer Science 23109864Sjeff * Carnegie Mellon University 24109864Sjeff * Pittsburgh PA 15213-3890 25109864Sjeff * 26109864Sjeff * any improvements or extensions that they make and grant Carnegie the 27109864Sjeff * rights to redistribute these changes. 28109864Sjeff */ 29109864Sjeff 30109864Sjeff#ifndef _MIPS_CDEFS_H_ 31109864Sjeff#define _MIPS_CDEFS_H_ 32109864Sjeff 33109864Sjeff/* MIPS Subprogram Interface Model */ 34109864Sjeff#define _MIPS_SIM_ABIX32 4 /* 64 bit safe, ILP32 o32 model */ 35109864Sjeff#define _MIPS_SIM_ABI64 3 36112966Sjeff#define _MIPS_SIM_NABI32 2 /* 64bit safe, ILP32 n32 model */ 37109864Sjeff#define _MIPS_SIM_ABI32 1 38109864Sjeff 39109864Sjeff#define _MIPS_BSD_API_LP32 _MIPS_SIM_ABI32 40109864Sjeff#define _MIPS_BSD_API_LP32_64CLEAN _MIPS_SIM_ABIX32 41109864Sjeff#define _MIPS_BSD_API_N32 _MIPS_SIM_NABI32 42109864Sjeff#define _MIPS_BSD_API_LP64 _MIPS_SIM_ABI64 43109864Sjeff 44109864Sjeff#if defined(__mips_n64) 45109864Sjeff#define _MIPS_BSD_API _MIPS_BSD_API_LP64 46109864Sjeff#elif defined(__mips_n32) 47109864Sjeff#define _MIPS_BSD_API _MIPS_BSD_API_N32 48109864Sjeff#elif defined(__mips_o64) 49109864Sjeff#define _MIPS_BSD_API _MIPS_BSD_API_LP32_64CLEAN 50109864Sjeff#else 51109864Sjeff#define _MIPS_BSD_API _MIPS_BSD_API_LP32 52109864Sjeff#endif 53109864Sjeff 54109864Sjeff#endif /* !_MIPS_CDEFS_H_ */ 55109864Sjeff