Module Name: src Committed By: martin Date: Wed Dec 26 19:43:10 UTC 2012
Modified Files: src/sys/arch/ia64/include: Makefile mcontext.h types.h Added Files: src/sys/arch/ia64/include: ieee.h ieeefp.h math.h profile.h Log Message: Install headers needed for userland build. Add missing accessors for pthread and TLS support - just dummies for now. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/Makefile cvs rdiff -u -r0 -r1.1 src/sys/arch/ia64/include/ieee.h \ src/sys/arch/ia64/include/ieeefp.h src/sys/arch/ia64/include/math.h \ src/sys/arch/ia64/include/profile.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/mcontext.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ia64/include/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/ia64/include/Makefile diff -u src/sys/arch/ia64/include/Makefile:1.4 src/sys/arch/ia64/include/Makefile:1.5 --- src/sys/arch/ia64/include/Makefile:1.4 Sun Jul 17 20:54:42 2011 +++ src/sys/arch/ia64/include/Makefile Wed Dec 26 19:43:09 2012 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2011/07/17 20:54:42 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2012/12/26 19:43:09 martin Exp $ INCSDIR= /usr/include/ia64 @@ -6,11 +6,11 @@ INCS= _regset.h acpi_func.h acpi_machdep aout_machdep.h asm.h atomic.h bootinfo.h bswap.h cdefs.h \ cpu.h cpufunc.h dig64.h disklabel.h efi.h \ elf_machdep.h endian.h endian_machdep.h float.h fpu.h frame.h \ - ia64_cpu.h int_const.h int_fmtio.h int_limits.h \ + ia64_cpu.h ieee.h ieeefp.h int_const.h int_fmtio.h int_limits.h \ int_mwgwtypes.h int_types.h intr.h intrcnt.h limits.h \ - loadfile_machdep.h lock.h mca_machdep.h mcontext.h md_var.h \ - pal.h param.h pcb.h pmap.h proc.h pte.h ptrace.h reg.h sal.h \ - setjmp.h signal.h smp.h ssc.h types.h \ + loadfile_machdep.h lock.h math.h mca_machdep.h mcontext.h md_var.h \ + mutex.h pal.h param.h pcb.h pmap.h proc.h profile.h pte.h ptrace.h \ + reg.h sal.h rwlock.h setjmp.h signal.h smp.h ssc.h types.h \ vmparam.h wchar_limits.h .include <bsd.kinc.mk> Index: src/sys/arch/ia64/include/mcontext.h diff -u src/sys/arch/ia64/include/mcontext.h:1.2 src/sys/arch/ia64/include/mcontext.h:1.3 --- src/sys/arch/ia64/include/mcontext.h:1.2 Mon Apr 28 20:23:25 2008 +++ src/sys/arch/ia64/include/mcontext.h Wed Dec 26 19:43:10 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.2 2008/04/28 20:23:25 martin Exp $ */ +/* $NetBSD: mcontext.h,v 1.3 2012/12/26 19:43:10 martin Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -95,4 +95,10 @@ typedef struct __mcontext { #define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.mc_special.sp) #endif +static __inline void * +__lwp_getprivate_fast(void) +{ + return (void*)0; +} + #endif /* !_IA64_MCONTEXT_H_ */ Index: src/sys/arch/ia64/include/types.h diff -u src/sys/arch/ia64/include/types.h:1.6 src/sys/arch/ia64/include/types.h:1.7 --- src/sys/arch/ia64/include/types.h:1.6 Sat Oct 1 15:59:28 2011 +++ src/sys/arch/ia64/include/types.h Wed Dec 26 19:43:10 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.6 2011/10/01 15:59:28 chs Exp $ */ +/* $NetBSD: types.h,v 1.7 2012/12/26 19:43:10 martin Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -75,6 +75,7 @@ typedef __volatile int __cpu_simple_loc #define __HAVE_OLD_DISKLABEL #define __HAVE_ATOMIC64_OPS /* XXX: #define __HAVE_CPU_MAXPROC */ +#define __HAVE_TLS_VARIANT_I #if defined(_KERNEL) #define __HAVE_RAS Added files: Index: src/sys/arch/ia64/include/ieee.h diff -u /dev/null src/sys/arch/ia64/include/ieee.h:1.1 --- /dev/null Wed Dec 26 19:43:10 2012 +++ src/sys/arch/ia64/include/ieee.h Wed Dec 26 19:43:10 2012 @@ -0,0 +1,3 @@ +/* $NetBSD: ieee.h,v 1.1 2012/12/26 19:43:10 martin Exp $ */ + +#include <sys/ieee754.h> Index: src/sys/arch/ia64/include/ieeefp.h diff -u /dev/null src/sys/arch/ia64/include/ieeefp.h:1.1 --- /dev/null Wed Dec 26 19:43:10 2012 +++ src/sys/arch/ia64/include/ieeefp.h Wed Dec 26 19:43:10 2012 @@ -0,0 +1,73 @@ +/* $NetBSD: ieeefp.h,v 1.1 2012/12/26 19:43:10 martin Exp $ */ + +/* + * Written by J.T. Conklin, Apr 28, 1995 + * Public domain. + */ + +#ifndef _IA64_IEEEFP_H_ +#define _IA64_IEEEFP_H_ + +#include <sys/featuretest.h> + +#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE) + +typedef int fenv_t; +typedef int fexcept_t; + +#define FE_INVALID 0x01 /* invalid operation exception */ +#define FE_DIVBYZERO 0x02 /* divide-by-zero exception */ +#define FE_OVERFLOW 0x04 /* overflow exception */ +#define FE_UNDERFLOW 0x08 /* underflow exception */ +#define FE_INEXACT 0x10 /* imprecise (loss of precision; "inexact") */ +#define FE_IOVERFLOW 0x20 /* integer overflow */ + +#define FE_ALL_EXCEPT 0x3f + +/* + * These bits match the fpcr as well as bits 12:11 + * in fp operate instructions + */ +#define FE_TOWARDZERO 0 /* round to zero (truncate) */ +#define FE_DOWNWARD 1 /* round toward negative infinity */ +#define FE_TONEAREST 2 /* round to nearest representable number */ +#define FE_UPWARD 3 /* round toward positive infinity */ + +#if !defined(_ISOC99_SOURCE) + +typedef int fp_except; + +#define FP_X_INV FE_INVALID /* invalid operation exception */ +#define FP_X_DZ FE_DIVBYZERO /* divide-by-zero exception */ +#define FP_X_OFL FE_OVERFLOW /* overflow exception */ +#define FP_X_UFL FE_UNDERFLOW /* underflow exception */ +#define FP_X_IMP FE_INEXACT /* imprecise (prec. loss; "inexact") */ +#define FP_X_IOV FE_IOVERFLOW /* integer overflow */ + +/* + * fp_rnd bits match the fpcr, below, as well as bits 12:11 + * in fp operate instructions + */ +typedef enum { + FP_RZ = FE_TOWARDZERO, /* round to zero (truncate) */ + FP_RM = FE_DOWNWARD, /* round toward negative infinity */ + FP_RN = FE_TONEAREST, /* round to nearest representable number */ + FP_RP = FE_UPWARD, /* round toward positive infinity */ + _FP_DYNAMIC=FP_RP +} fp_rnd; + +#endif /* !_ISOC99_SOURCE */ + +#endif /* _NETBSD_SOURCE || _ISOC99_SOURCE */ + +#endif /* _IA64_IEEEFP_H_ */ + + + + + + + + + + Index: src/sys/arch/ia64/include/math.h diff -u /dev/null src/sys/arch/ia64/include/math.h:1.1 --- /dev/null Wed Dec 26 19:43:10 2012 +++ src/sys/arch/ia64/include/math.h Wed Dec 26 19:43:10 2012 @@ -0,0 +1,3 @@ +/* $NetBSD: math.h,v 1.1 2012/12/26 19:43:10 martin Exp $ */ + +#define __HAVE_NANF Index: src/sys/arch/ia64/include/profile.h diff -u /dev/null src/sys/arch/ia64/include/profile.h:1.1 --- /dev/null Wed Dec 26 19:43:10 2012 +++ src/sys/arch/ia64/include/profile.h Wed Dec 26 19:43:10 2012 @@ -0,0 +1,32 @@ +/* $NetBSD: profile.h,v 1.1 2012/12/26 19:43:10 martin Exp $ */ + +/* + * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. + * All rights reserved. + * + * Author: Chris G. Demetriou + * + * Permission to use, copy, modify and distribute this software and + * its documentation is hereby granted, provided that both the copyright + * notice and this permission notice appear in all copies of the + * software, derivative works or modified versions, and any portions + * thereof, and that both notices appear in supporting documentation. + * + * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" + * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND + * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. + * + * Carnegie Mellon requests users of this software to return to + * + * Software Distribution Coordinator or software.distribut...@cs.cmu.edu + * School of Computer Science + * Carnegie Mellon University + * Pittsburgh PA 15213-3890 + * + * any improvements or extensions that they make and grant Carnegie the + * rights to redistribute these changes. + */ + + +#define _MCOUNT_DECL void mcount +#define _MCOUNT_FUNC mcount