# Component description file for the socket library.\r
#\r
# This module implements the socket library.\r
-# Copyright (c) 2011, Intel Corporation\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = BsdSocketLib\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r
# Component description file for the EFI socket library.\r
#\r
# This module implements the socket layer.\r
-# Copyright (c) 2011 - 2015, Intel Corporation\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
DESTRUCTOR = EslDestructor\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r
+++ /dev/null
-/* $NetBSD: _regset.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2002, 2003 Marcel Moolenaar\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- *\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_REGSET_H_\r
-#define _MACHINE_REGSET_H_\r
-\r
-/*\r
- * Create register sets, based on the runtime specification. This allows\r
- * us to better reuse code and to copy sets around more efficiently.\r
- * Contexts are defined in terms of these sets. These include trapframe,\r
- * sigframe, pcb, mcontext, reg and fpreg. Other candidates are unwind\r
- * and coredump related contexts.\r
- *\r
- * Notes:\r
- * o Constant registers (r0, f0 and f1) are not accounted for,\r
- * o The stacked registers (r32-r127) are not accounted for,\r
- * o Predicates are not split across sets.\r
- */\r
-\r
-/* A single FP register. */\r
-union _ia64_fpreg {\r
- unsigned char fpr_bits[16];\r
- long double fpr_flt;\r
-};\r
-\r
-/*\r
- * Special registers.\r
- */\r
-struct _special {\r
- unsigned long sp;\r
- unsigned long unat; /* NaT before spilling */\r
- unsigned long rp;\r
- unsigned long pr;\r
- unsigned long pfs;\r
- unsigned long bspstore;\r
- unsigned long rnat;\r
- unsigned long __spare;\r
- /* Userland context and syscalls */\r
- unsigned long tp;\r
- unsigned long rsc;\r
- unsigned long fpsr;\r
- unsigned long psr;\r
- /* ASYNC: Interrupt specific */\r
- unsigned long gp;\r
- unsigned long ndirty;\r
- unsigned long cfm;\r
- unsigned long iip;\r
- unsigned long ifa;\r
- unsigned long isr;\r
-};\r
-\r
-struct _high_fp {\r
- union _ia64_fpreg fr32;\r
- union _ia64_fpreg fr33;\r
- union _ia64_fpreg fr34;\r
- union _ia64_fpreg fr35;\r
- union _ia64_fpreg fr36;\r
- union _ia64_fpreg fr37;\r
- union _ia64_fpreg fr38;\r
- union _ia64_fpreg fr39;\r
- union _ia64_fpreg fr40;\r
- union _ia64_fpreg fr41;\r
- union _ia64_fpreg fr42;\r
- union _ia64_fpreg fr43;\r
- union _ia64_fpreg fr44;\r
- union _ia64_fpreg fr45;\r
- union _ia64_fpreg fr46;\r
- union _ia64_fpreg fr47;\r
- union _ia64_fpreg fr48;\r
- union _ia64_fpreg fr49;\r
- union _ia64_fpreg fr50;\r
- union _ia64_fpreg fr51;\r
- union _ia64_fpreg fr52;\r
- union _ia64_fpreg fr53;\r
- union _ia64_fpreg fr54;\r
- union _ia64_fpreg fr55;\r
- union _ia64_fpreg fr56;\r
- union _ia64_fpreg fr57;\r
- union _ia64_fpreg fr58;\r
- union _ia64_fpreg fr59;\r
- union _ia64_fpreg fr60;\r
- union _ia64_fpreg fr61;\r
- union _ia64_fpreg fr62;\r
- union _ia64_fpreg fr63;\r
- union _ia64_fpreg fr64;\r
- union _ia64_fpreg fr65;\r
- union _ia64_fpreg fr66;\r
- union _ia64_fpreg fr67;\r
- union _ia64_fpreg fr68;\r
- union _ia64_fpreg fr69;\r
- union _ia64_fpreg fr70;\r
- union _ia64_fpreg fr71;\r
- union _ia64_fpreg fr72;\r
- union _ia64_fpreg fr73;\r
- union _ia64_fpreg fr74;\r
- union _ia64_fpreg fr75;\r
- union _ia64_fpreg fr76;\r
- union _ia64_fpreg fr77;\r
- union _ia64_fpreg fr78;\r
- union _ia64_fpreg fr79;\r
- union _ia64_fpreg fr80;\r
- union _ia64_fpreg fr81;\r
- union _ia64_fpreg fr82;\r
- union _ia64_fpreg fr83;\r
- union _ia64_fpreg fr84;\r
- union _ia64_fpreg fr85;\r
- union _ia64_fpreg fr86;\r
- union _ia64_fpreg fr87;\r
- union _ia64_fpreg fr88;\r
- union _ia64_fpreg fr89;\r
- union _ia64_fpreg fr90;\r
- union _ia64_fpreg fr91;\r
- union _ia64_fpreg fr92;\r
- union _ia64_fpreg fr93;\r
- union _ia64_fpreg fr94;\r
- union _ia64_fpreg fr95;\r
- union _ia64_fpreg fr96;\r
- union _ia64_fpreg fr97;\r
- union _ia64_fpreg fr98;\r
- union _ia64_fpreg fr99;\r
- union _ia64_fpreg fr100;\r
- union _ia64_fpreg fr101;\r
- union _ia64_fpreg fr102;\r
- union _ia64_fpreg fr103;\r
- union _ia64_fpreg fr104;\r
- union _ia64_fpreg fr105;\r
- union _ia64_fpreg fr106;\r
- union _ia64_fpreg fr107;\r
- union _ia64_fpreg fr108;\r
- union _ia64_fpreg fr109;\r
- union _ia64_fpreg fr110;\r
- union _ia64_fpreg fr111;\r
- union _ia64_fpreg fr112;\r
- union _ia64_fpreg fr113;\r
- union _ia64_fpreg fr114;\r
- union _ia64_fpreg fr115;\r
- union _ia64_fpreg fr116;\r
- union _ia64_fpreg fr117;\r
- union _ia64_fpreg fr118;\r
- union _ia64_fpreg fr119;\r
- union _ia64_fpreg fr120;\r
- union _ia64_fpreg fr121;\r
- union _ia64_fpreg fr122;\r
- union _ia64_fpreg fr123;\r
- union _ia64_fpreg fr124;\r
- union _ia64_fpreg fr125;\r
- union _ia64_fpreg fr126;\r
- union _ia64_fpreg fr127;\r
-};\r
-\r
-/*\r
- * Preserved registers.\r
- */\r
-struct _callee_saved {\r
- unsigned long unat; /* NaT after spilling. */\r
- unsigned long gr4;\r
- unsigned long gr5;\r
- unsigned long gr6;\r
- unsigned long gr7;\r
- unsigned long br1;\r
- unsigned long br2;\r
- unsigned long br3;\r
- unsigned long br4;\r
- unsigned long br5;\r
- unsigned long lc;\r
- unsigned long __spare;\r
-};\r
-\r
-struct _callee_saved_fp {\r
- union _ia64_fpreg fr2;\r
- union _ia64_fpreg fr3;\r
- union _ia64_fpreg fr4;\r
- union _ia64_fpreg fr5;\r
- union _ia64_fpreg fr16;\r
- union _ia64_fpreg fr17;\r
- union _ia64_fpreg fr18;\r
- union _ia64_fpreg fr19;\r
- union _ia64_fpreg fr20;\r
- union _ia64_fpreg fr21;\r
- union _ia64_fpreg fr22;\r
- union _ia64_fpreg fr23;\r
- union _ia64_fpreg fr24;\r
- union _ia64_fpreg fr25;\r
- union _ia64_fpreg fr26;\r
- union _ia64_fpreg fr27;\r
- union _ia64_fpreg fr28;\r
- union _ia64_fpreg fr29;\r
- union _ia64_fpreg fr30;\r
- union _ia64_fpreg fr31;\r
-};\r
-\r
-/*\r
- * Scratch registers.\r
- */\r
-struct _caller_saved {\r
- unsigned long unat; /* NaT after spilling. */\r
- unsigned long gr2;\r
- unsigned long gr3;\r
- unsigned long gr8;\r
- unsigned long gr9;\r
- unsigned long gr10;\r
- unsigned long gr11;\r
- unsigned long gr14;\r
- unsigned long gr15;\r
- unsigned long gr16;\r
- unsigned long gr17;\r
- unsigned long gr18;\r
- unsigned long gr19;\r
- unsigned long gr20;\r
- unsigned long gr21;\r
- unsigned long gr22;\r
- unsigned long gr23;\r
- unsigned long gr24;\r
- unsigned long gr25;\r
- unsigned long gr26;\r
- unsigned long gr27;\r
- unsigned long gr28;\r
- unsigned long gr29;\r
- unsigned long gr30;\r
- unsigned long gr31;\r
- unsigned long br6;\r
- unsigned long br7;\r
- unsigned long ccv;\r
- unsigned long csd;\r
- unsigned long ssd;\r
-};\r
-\r
-struct _caller_saved_fp {\r
- union _ia64_fpreg fr6;\r
- union _ia64_fpreg fr7;\r
- union _ia64_fpreg fr8;\r
- union _ia64_fpreg fr9;\r
- union _ia64_fpreg fr10;\r
- union _ia64_fpreg fr11;\r
- union _ia64_fpreg fr12;\r
- union _ia64_fpreg fr13;\r
- union _ia64_fpreg fr14;\r
- union _ia64_fpreg fr15;\r
-};\r
-\r
-#ifdef _KERNEL\r
-void restore_callee_saved(const struct _callee_saved *);\r
-void restore_callee_saved_fp(const struct _callee_saved_fp *);\r
-void restore_high_fp(const struct _high_fp *);\r
-void save_callee_saved(struct _callee_saved *);\r
-void save_callee_saved_fp(struct _callee_saved_fp *);\r
-void save_high_fp(struct _high_fp *);\r
-#endif\r
-\r
-#endif /* _MACHINE_REGSET_H_ */\r
+++ /dev/null
-/* $NetBSD: acpi_func.h,v 1.2 2006/05/14 21:55:38 elad Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2002 Mitsuru IWASAKI\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD: src/sys/ia64/include/acpica_machdep.h,v 1.4 2004/10/11 05:39:15 njl Exp $\r
- */\r
-\r
-/******************************************************************************\r
- *\r
- * Name: acpica_machdep.h - arch-specific defines, etc.\r
- * $Revision: 1.2 $\r
- *\r
- *****************************************************************************/\r
-\r
-#ifndef _IA64_ACPI_FUNC_H_\r
-#define _IA64_ACPI_FUNC_H_\r
-\r
-#include <machine/cpufunc.h>\r
-#include <machine/atomic.h>\r
-\r
-/* Asm macros */\r
-\r
-#define ACPI_ASM_MACROS\r
-#define BREAKPOINT3\r
-#define ACPI_DISABLE_IRQS() disable_intr()\r
-#define ACPI_ENABLE_IRQS() enable_intr()\r
-\r
-#define ACPI_FLUSH_CPU_CACHE() /* XXX ia64_fc()? */\r
-\r
-\r
-/* Section 5.2.9.1: global lock acquire/release functions */\r
-extern int acpi_acquire_global_lock(uint32_t *lock);\r
-extern int acpi_release_global_lock(uint32_t *lock);\r
-#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) \\r
- ((Acq) = acpi_acquire_global_lock(GLptr))\r
-#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq) \\r
- ((Acq) = acpi_release_global_lock(GLptr))\r
-\r
-\r
-/* Section 5.2.9.1: global lock acquire/release functions */\r
-#define GL_ACQUIRED (-1)\r
-#define GL_BUSY 0\r
-#define GL_BIT_PENDING 0x1\r
-#define GL_BIT_OWNED 0x2\r
-#define GL_BIT_MASK (GL_BIT_PENDING | GL_BIT_OWNED)\r
-\r
-/*\r
- * Acquire the global lock. If busy, set the pending bit. The caller\r
- * will wait for notification from the BIOS that the lock is available\r
- * and then attempt to acquire it again.\r
- */\r
-int\r
-acpi_acquire_global_lock(uint32_t *lock)\r
-{\r
- uint32_t new, old;\r
-\r
- do {\r
- old = *lock;\r
- new = ((old & ~GL_BIT_MASK) | GL_BIT_OWNED) |\r
- ((old >> 1) & GL_BIT_PENDING);\r
- } while (atomic_cmpset_acq_int(lock, old, new) == 0);\r
-\r
- return ((new < GL_BIT_MASK) ? GL_ACQUIRED : GL_BUSY);\r
-}\r
-\r
-/*\r
- * Release the global lock, returning whether there is a waiter pending.\r
- * If the BIOS set the pending bit, OSPM must notify the BIOS when it\r
- * releases the lock.\r
- */\r
-int\r
-acpi_release_global_lock(uint32_t *lock)\r
-{\r
- uint32_t new, old;\r
-\r
- do {\r
- old = *lock;\r
- new = old & ~GL_BIT_MASK;\r
- } while (atomic_cmpset_rel_int(lock, old, new) == 0);\r
-\r
- return (old & GL_BIT_PENDING);\r
-}\r
-\r
-#endif /* _IA64_ACPI_FUNC_H_ */\r
+++ /dev/null
-/* $NetBSD: acpi_machdep.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-\r
+++ /dev/null
-/* $NetBSD: acpica_machdep.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
+++ /dev/null
-/** @file\r
- Machine dependent ANSI type definitions.\r
-\r
- Copyright (c) 2010-2012, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are licensed and made available\r
- under the terms and conditions of the BSD License that accompanies this\r
- distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- * Copyright (c) 1990, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)ansi.h 8.2 (Berkeley) 1/4/94\r
- NetBSD: ansi.h,v 1.3 2006/10/04 13:52:00 tnozaki Exp\r
- */\r
-#ifndef _ANSI_H_\r
-#define _ANSI_H_\r
-\r
-#include <sys/EfiCdefs.h>\r
-#include <machine/int_types.h>\r
-\r
-/*\r
- * Types which are fundamental to the implementation and may appear in\r
- * more than one standard header are defined here. Standard headers\r
- * then use:\r
- * #ifdef _SIZE_T_\r
- * typedef _SIZE_T_ size_t;\r
- * #undef _SIZE_T_\r
- * #endif\r
- *\r
- * Thanks, ANSI!\r
- */\r
-#define _BSD_CLOCK_T_ _EFI_CLOCK_T /* clock() */\r
-#define _BSD_PTRDIFF_T_ _EFI_PTRDIFF_T_ /* ptr1 - ptr2 */\r
-#define _BSD_SIZE_T_ _EFI_SIZE_T_ /* sizeof() */\r
-#define _BSD_SSIZE_T_ INTN /* byte count or error */\r
-#define _BSD_TIME_T_ _EFI_TIME_T /* time() */\r
-\r
-#define _BSD_VA_LIST_ VA_LIST\r
-#define _BSD_CLOCKID_T_ INT64 /* clockid_t */\r
-#define _BSD_TIMER_T_ INT64 /* timer_t */\r
-#define _BSD_SUSECONDS_T_ INT64 /* suseconds_t */\r
-#define _BSD_USECONDS_T_ UINT64 /* useconds_t */\r
-\r
-/*\r
- * NOTE: rune_t is not covered by ANSI nor other standards, and should not\r
- * be instantiated outside of lib/libc/locale. use wchar_t.\r
- *\r
- * Runes (wchar_t) is declared to be an ``int'' instead of the more natural\r
- * ``unsigned long'' or ``long''. Two things are happening here. It is not\r
- * unsigned so that EOF (-1) can be naturally assigned to it and used. Also,\r
- * it looks like 10646 will be a 31 bit standard. This means that if your\r
- * ints cannot hold 32 bits, you will be in trouble. The reason an int was\r
- * chosen over a long is that the is*() and to*() routines take ints (says\r
- * ANSI C), but they use _RUNE_T_ instead of int. By changing it here, you\r
- * lose a bit of ANSI conformance, but your programs will still work.\r
- *\r
- * Note that _WCHAR_T_ and _RUNE_T_ must be of the same type. When wchar_t\r
- * and rune_t are typedef'd, _WCHAR_T_ will be undef'd, but _RUNE_T remains\r
- * defined for ctype.h.\r
- */\r
-#define _BSD_WCHAR_T_ _EFI_WCHAR_T /* wchar_t */\r
-#define _BSD_WINT_T_ _EFI_WINT_T /* wint_t */\r
-#define _BSD_RUNE_T_ _EFI_WCHAR_T /* rune_t */\r
-#define _BSD_WCTRANS_T_ void * /* wctrans_t */\r
-#define _BSD_WCTYPE_T_ unsigned int /* wctype_t */\r
-/*\r
- * mbstate_t is an opaque object to keep conversion state, during multibyte\r
- * stream conversions. The content must not be referenced by user programs.\r
- */\r
-typedef struct {\r
- UINT32 A; // Np;\r
- UINT32 B; // U;\r
- UINT32 E; // L\r
- UINT8 C[4]; // n[4]\r
- UINT16 D[2]; // w[2]\r
-} __mbstate_t;\r
-#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */\r
-\r
-#endif /* _ANSI_H_ */\r
+++ /dev/null
-/* $NetBSD: aout_machdep.h,v 1.2 2006/07/03 17:01:45 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1992, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)exec.h 8.1 (Berkeley) 6/10/93\r
- */\r
-\r
-#define AOUT_LDPGSZ 16384\r
-\r
-\r
+++ /dev/null
-/* $NetBSD: asm.h,v 1.4 2006/08/30 11:14:23 cherry Exp $ */\r
-\r
-/* -\r
- * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University\r
- * All Rights Reserved.\r
- * \r
- * Permission to use, copy, modify and distribute this software and its\r
- * documentation is hereby granted, provided that both the copyright\r
- * notice and this permission notice appear in all copies of the\r
- * software, derivative works or modified versions, and any portions\r
- * thereof, and that both notices appear in supporting documentation.\r
- * \r
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"\r
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR\r
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.\r
- * \r
- * Carnegie Mellon requests users of this software to return to\r
- * \r
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU\r
- * School of Computer Science\r
- * Carnegie Mellon University\r
- * Pittsburgh PA 15213-3890\r
- * \r
- * any improvements or extensions that they make and grant Carnegie Mellon\r
- * the rights to redistribute these changes.\r
- */\r
-\r
-/*\r
- * Assembly coding style\r
- *\r
- * This file contains macros and register defines to\r
- * aid in writing more readable assembly code.\r
- * Some rules to make assembly code understandable by\r
- * a debugger are also noted.\r
- */\r
-\r
-/*\r
- * Macro to make a local label name.\r
- */\r
-#define LLABEL(name,num) L ## name ## num\r
-\r
-/*\r
- * MCOUNT\r
- */\r
-#if defined(GPROF)\r
-#define MCOUNT \\r
- alloc out0 = ar.pfs, 8, 0, 4, 0; \\r
- mov out1 = r1; \\r
- mov out2 = b0;; \\r
- mov out3 = r0; \\r
- br.call.sptk b0 = _mcount;;\r
-#else\r
-#define MCOUNT /* nothing */\r
-#endif\r
-\r
-/*\r
- * ENTRY\r
- * Declare a global leaf function.\r
- * A leaf function does not call other functions.\r
- */\r
-#define ENTRY(_name_, _n_args_) \\r
- .global _name_; \\r
- .align 16; \\r
- .proc _name_; \\r
-_name_:; \\r
- .regstk _n_args_, 0, 0, 0; \\r
- MCOUNT\r
-\r
-#define ENTRY_NOPROFILE(_name_, _n_args_) \\r
- .global _name_; \\r
- .align 16; \\r
- .proc _name_; \\r
-_name_:; \\r
- .regstk _n_args_, 0, 0, 0\r
-\r
-/*\r
- * STATIC_ENTRY\r
- * Declare a local leaf function.\r
- */\r
-#define STATIC_ENTRY(_name_, _n_args_) \\r
- .align 16; \\r
- .proc _name_; \\r
-_name_:; \\r
- .regstk _n_args_, 0, 0, 0 \\r
- MCOUNT\r
-/*\r
- * XENTRY\r
- * Global alias for a leaf function, or alternate entry point\r
- */\r
-#define XENTRY(_name_) \\r
- .globl _name_; \\r
-_name_:\r
-\r
-/*\r
- * STATIC_XENTRY\r
- * Local alias for a leaf function, or alternate entry point\r
- */\r
-#define STATIC_XENTRY(_name_) \\r
-_name_:\r
-\r
-\r
-/*\r
- * END\r
- * Function delimiter\r
- */\r
-#define END(_name_) \\r
- .endp _name_\r
-\r
-\r
-/*\r
- * EXPORT\r
- * Export a symbol\r
- */\r
-#define EXPORT(_name_) \\r
- .global _name_; \\r
-_name_:\r
-\r
-\r
-/*\r
- * IMPORT\r
- * Make an external name visible, typecheck the size\r
- */\r
-#define IMPORT(_name_, _size_) \\r
- /* .extern _name_,_size_ */\r
-\r
-\r
-/*\r
- * ABS\r
- * Define an absolute symbol\r
- */\r
-#define ABS(_name_, _value_) \\r
- .globl _name_; \\r
-_name_ = _value_\r
-\r
-\r
-/*\r
- * BSS\r
- * Allocate un-initialized space for a global symbol\r
- */\r
-#define BSS(_name_,_numbytes_) \\r
- .comm _name_,_numbytes_\r
-\r
-\r
-/*\r
- * MSG\r
- * Allocate space for a message (a read-only ascii string)\r
- */\r
-#define ASCIZ .asciz\r
-#define MSG(msg,reg,label) \\r
- addl reg,@ltoff(label),gp;; \\r
- ld8 reg=[reg];; \\r
- .data; \\r
-label: ASCIZ msg; \\r
- .text;\r
-\r
-\r
-/*\r
- * System call glue.\r
- */\r
-#define SYSCALLNUM(name) ___CONCAT(SYS_,name)\r
-\r
-#define CALLSYS_NOERROR(name) \\r
-{ .mmi ; \\r
- alloc r9 = ar.pfs, 0, 0, 8, 0 ; \\r
- mov r31 = ar.k5 ; \\r
- mov r10 = b0 ;; } \\r
-{ .mib ; \\r
- mov r8 = SYSCALLNUM(name) ; \\r
- mov b7 = r31 ; \\r
- br.call.sptk b0 = b7 ;; }\r
-\r
-\r
-/*\r
- * WEAK_ALIAS: create a weak alias (ELF only).\r
- */\r
-#define WEAK_ALIAS(alias,sym) \\r
- .weak alias; \\r
- alias = sym\r
-\r
-/*\r
- * STRONG_ALIAS: create a strong alias.\r
- */\r
-#define STRONG_ALIAS(alias,sym) \\r
- .globl alias; \\r
- alias = sym\r
+++ /dev/null
-/* $NetBSD: bootinfo.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.\r
- * All rights reserved.\r
- *\r
- * Author: Chris G. Demetriou\r
- * \r
- * Permission to use, copy, modify and distribute this software and\r
- * its documentation is hereby granted, provided that both the copyright\r
- * notice and this permission notice appear in all copies of the\r
- * software, derivative works or modified versions, and any portions\r
- * thereof, and that both notices appear in supporting documentation.\r
- * \r
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" \r
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND \r
- * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.\r
- * \r
- * Carnegie Mellon requests users of this software to return to\r
- *\r
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU\r
- * School of Computer Science\r
- * Carnegie Mellon University\r
- * Pittsburgh PA 15213-3890\r
- *\r
- * any improvements or extensions that they make and grant Carnegie the\r
- * rights to redistribute these changes.\r
- */\r
-\r
-struct bootinfo {\r
- uint64_t bi_magic; /* BOOTINFO_MAGIC */\r
-#define BOOTINFO_MAGIC 0xdeadbeeffeedface\r
- uint64_t bi_version; /* version 1 */\r
- uint64_t bi_spare[5]; /* was: name of booted kernel */\r
- uint64_t bi_hcdp; /* DIG64 HCDP table */\r
- uint64_t bi_fpswa; /* FPSWA interface */\r
- uint64_t bi_boothowto; /* value for boothowto */\r
- uint64_t bi_systab; /* pa of EFI system table */\r
- uint64_t bi_memmap; /* pa of EFI memory map */\r
- uint64_t bi_memmap_size; /* size of EFI memory map */\r
- uint64_t bi_memdesc_size; /* sizeof EFI memory desc */\r
- uint32_t bi_memdesc_version; /* EFI memory desc version */\r
- uint32_t bi_spare2;\r
- uint64_t bi_unwindtab; /* start of ia64 unwind table */\r
- uint64_t bi_unwindtablen; /* lenght of the table, in bytes */\r
- uint64_t bi_symtab; /* start of kernel sym table */\r
- uint64_t bi_esymtab; /* end of kernel sym table */\r
- uint64_t bi_kernend; /* end of kernel space */\r
- uint64_t bi_envp; /* environment */\r
-};\r
-\r
-extern struct bootinfo bootinfo;\r
+++ /dev/null
-/* $NetBSD: bswap.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-#ifndef _MACHINE_BSWAP_H_\r
-#define _MACHINE_BSWAP_H_\r
-\r
-#include <sys/bswap.h>\r
-\r
-#endif /* !_MACHINE_BSWAP_H_ */\r
+++ /dev/null
-/* $NetBSD: cdefs.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-#ifndef _MACHINE_CDEFS_H_\r
-#define _MACHINE_CDEFS_H_\r
-\r
-/* We're elf only: inspected by sys/cdefs.h */\r
-#ifndef __ELF__\r
-#define __ELF__\r
-#endif\r
-\r
-#endif /* !_MACHINE_CDEFS_H_ */\r
+++ /dev/null
-/* $NetBSD: cpu.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2006 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,\r
- * NASA Ames Research Center, and by Charles M. Hannum.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-\r
-/*-\r
- * Copyright (c) 1988 University of Utah.\r
- * Copyright (c) 1982, 1990, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- *\r
- * This code is derived from software contributed to Berkeley by\r
- * the Systems Programming Group of the University of Utah Computer\r
- * Science Department.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 4. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * from: Utah $Hdr: cpu.h 1.16 91/03/25$\r
- *\r
- * @(#)cpu.h 8.4 (Berkeley) 1/5/94\r
- */\r
-\r
-\r
-#ifndef _IA64_CPU_H_\r
-#define _IA64_CPU_H_\r
-\r
-#ifdef _KERNEL\r
-#include <sys/cpu_data.h>\r
-#include <sys/cc_microtime.h>\r
-#include <machine/frame.h>\r
-#include <machine/ia64_cpu.h>\r
-\r
-\r
-struct cpu_info {\r
- struct device *ci_dev; /* pointer to our device */\r
- struct cpu_info *ci_self; /* self-pointer */\r
- /*\r
- * Public members.\r
- */\r
- struct lwp *ci_curlwp; /* current owner of the processor */\r
- struct cpu_data ci_data; /* MI per-cpu data */\r
- struct cc_microtime_state ci_cc;/* cc_microtime state */\r
- struct cpu_info *ci_next; /* next cpu_info structure */\r
-\r
- /* XXX: Todo */\r
- /*\r
- * Private members.\r
- */\r
- cpuid_t ci_cpuid; /* our CPU ID */\r
- struct pmap *ci_pmap; /* current pmap */\r
- struct lwp *ci_fpcurlwp; /* current owner of the FPU */\r
- paddr_t ci_curpcb; /* PA of current HW PCB */\r
- struct pcb *ci_idle_pcb; /* our idle PCB */\r
- struct cpu_softc *ci_softc; /* pointer to our device */\r
- u_long ci_want_resched; /* preempt current process */\r
- u_long ci_intrdepth; /* interrupt trap depth */\r
- struct trapframe *ci_db_regs; /* registers for debuggers */\r
-};\r
-\r
-\r
-extern struct cpu_info cpu_info_primary;\r
-\r
-#ifdef MULTIPROCESSOR\r
-/* XXX: TODO */\r
-#else\r
-#define curcpu() (&cpu_info_primary)\r
-#endif /* MULTIPROCESSOR */\r
-\r
-#define cpu_number() 0 /*XXX: FIXME */\r
-\r
-#define aston(p) ((p)->p_md.md_astpending = 1)\r
-\r
-#define need_resched(ci) /*XXX: FIXME */\r
-\r
-struct clockframe {\r
- struct trapframe cf_tf;\r
-};\r
-\r
-#define CLKF_PC(cf) ((cf)->cf_tf.tf_special.iip)\r
-#define CLKF_CPL(cf) ((cf)->cf_tf.tf_special.psr & IA64_PSR_CPL)\r
-#define CLKF_USERMODE(cf) (CLKF_CPL(cf) != IA64_PSR_CPL_KERN)\r
-#define CLKF_BASEPRI(frame) (0) /*XXX: CHECKME */\r
-#define CLKF_INTR(frame) (curcpu()->ci_intrdepth)\r
-\r
-#define TRAPF_PC(tf) ((tf)->tf_special.iip)\r
-#define TRAPF_CPL(tf) ((tf)->tf_special.psr & IA64_PSR_CPL)\r
-#define TRAPF_USERMODE(tf) (TRAPF_CPL(tf) != IA64_PSR_CPL_KERN)\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-/*\r
- * Give a profiling tick to the current process when the user profiling\r
- * buffer pages are invalid. XXX:Fixme.... On the ia64 I haven't yet figured \r
- * out what to do about this.. XXX.\r
- */\r
-\r
-\r
-#define need_proftick(p)\r
-\r
-/*\r
- * Notify the current process (p) that it has a signal pending,\r
- * process as soon as possible.\r
- */\r
-#define signotify(p) aston(p)\r
-\r
-#define setsoftclock() /*XXX: FIXME */\r
-\r
-/* machdep.c */\r
-int cpu_maxproc(void); /*XXX: Fill in machdep.c */\r
-\r
-#define cpu_proc_fork(p1, p2) /* XXX: Look into this. */\r
-\r
-\r
-/* XXX: TODO: generic microtime support kern/kern_microtime.c \r
- * #define microtime(tv) cc_microtime(tv) \r
- */\r
-\r
-\r
-#endif /* _KERNEL_ */\r
-#endif /* _IA64_CPU_H */\r
+++ /dev/null
-/* $NetBSD: cpu_counter.h,v 1.1 2006/09/20 13:33:04 kochi Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2006 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Takayoshi Kochi.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#ifndef _IA64_CPU_COUNTER_H_\r
-#define _IA64_CPU_COUNTER_H_\r
-\r
-/*\r
- * Machine-specific support for CPU counter.\r
- */\r
-\r
-#ifdef _KERNEL\r
-\r
-#include <machine/ia64_cpu.h>\r
-\r
-static __inline int\r
-cpu_hascounter(void)\r
-{\r
- return 1;\r
-}\r
-\r
-static __inline uint64_t\r
-cpu_counter(void)\r
-{\r
- return ia64_get_itc();\r
-}\r
-\r
-static __inline uint32_t\r
-cpu_counter32(void)\r
-{\r
- return (ia64_get_itc() & 0xffffffffUL);\r
-}\r
-\r
-static __inline uint64_t\r
-cpu_frequency(struct cpu_info *ci)\r
-{\r
- extern uint64_t itc_frequency;\r
-\r
- return itc_frequency;\r
-}\r
-\r
-#endif /* _KERNEL */\r
-\r
-#endif /* !_IA64_CPU_COUNTER_H_ */\r
+++ /dev/null
-/* $NetBSD: db_machdep.h,v 1.2 2006/08/30 11:12:04 cherry Exp $ */\r
-\r
-/*\r
- * Copyright (c) 1995 Carnegie-Mellon University.\r
- * All rights reserved.\r
- *\r
- * Author: Chris G. Demetriou\r
- *\r
- * Permission to use, copy, modify and distribute this software and\r
- * its documentation is hereby granted, provided that both the copyright\r
- * notice and this permission notice appear in all copies of the\r
- * software, derivative works or modified versions, and any portions\r
- * thereof, and that both notices appear in supporting documentation.\r
- *\r
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"\r
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND\r
- * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.\r
- *\r
- * Carnegie Mellon requests users of this software to return to\r
- *\r
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU\r
- * School of Computer Science\r
- * Carnegie Mellon University\r
- * Pittsburgh PA 15213-3890\r
- *\r
- * any improvements or extensions that they make and grant Carnegie the\r
- * rights to redistribute these changes.\r
- */\r
-\r
-#ifndef _IA64_DB_MACHDEP_H_\r
-#define _IA64_DB_MACHDEP_H_\r
-\r
-/*\r
- * Machine-dependent defines for new kernel debugger.\r
- */\r
-\r
-#include <sys/lock.h>\r
-#include <sys/param.h>\r
-#include <uvm/uvm_extern.h>\r
-#include <machine/frame.h>\r
-#include <machine/ia64_cpu.h>\r
-\r
-typedef vaddr_t db_addr_t; /* address - unsigned */\r
-typedef long db_expr_t; /* expression - signed */\r
-\r
-typedef struct trapframe db_regs_t;\r
-extern db_regs_t *ddb_regp; /* pointer to current register state */\r
-#define DDB_REGS (ddb_regp)\r
-\r
-#if 0 /* XXX: disabling this until we switch on makectx()and have a proper \\r
- curlwp(). TODO: please switch this back on ASAP */\r
-\r
-#define PC_REGS(regs) ((db_addr_t)(regs)->tf_special.__spare == 0) ? \\r
- ((db_addr_t)(regs)->tf_special.rp) : \\r
- ((db_addr_t)(regs)->tf_special.iip + (((regs)->tf_special.psr>>41) & 3))\r
-#endif\r
-\r
-#if 1\r
-#define PC_REGS(regs) ((db_addr_t)(regs)->tf_special.iip + (((regs)->tf_special.psr>>41) & 3))\r
-#endif\r
-\r
-#define db_set_single_step(regs) ((regs)->tf_special.psr |= IA64_PSR_SS)\r
-#define db_clear_single_step(regs) ((regs)->tf_special.psr &= ~IA64_PSR_SS)\r
-\r
-\r
-\r
-/* defines to help with manipulating ia64 VLIW instruction bundles and slots */\r
-\r
-#define TMPL_BITS 5\r
-#define TMPL_MASK ((1 << TMPL_BITS) - 1)\r
-#define SLOT_BITS 41\r
-#define SLOT_COUNT 3\r
-#define SLOT_MASK ((1ULL << SLOT_BITS) - 1ULL)\r
-#define SLOT_SHIFT(i) (TMPL_BITS+((i)<<3)+(i))\r
-\r
-#define ADDR_SLOT0(addr) ( (addr) & ~(0xFUL) )\r
-#define SLOT_ADDR(addr) ( (addr) & (0xFUL) )\r
-/* breakpoint address. \r
- * Check for violations of pseudo offsets above 2. \r
- * Adjust for 32 bit shift within Bundle.\r
- */\r
-\r
-#define BKPT_ADDR(addr) ( (SLOT_ADDR(addr) < SLOT_COUNT) ? \\r
- (ADDR_SLOT0(addr) | (SLOT_ADDR(addr) << 2)) \\r
- : ADDR_SLOT0(addr) )\r
-\r
-#define BKPT_SIZE 8\r
-\r
-#define BKPT_SET(inst, addr) db_bkpt_set(inst, addr)\r
-db_expr_t db_bkpt_set(db_expr_t inst, db_addr_t addr);\r
-\r
-\r
-#define PC_ADVANCE(regs) db_pc_advance(regs)\r
-void db_pc_advance(db_regs_t *);\r
-\r
-#define IS_BREAKPOINT_TRAP(type, code) (type == IA64_VEC_BREAK)\r
-#define IS_WATCHPOINT_TRAP(type, code) 0\r
-\r
-\r
-#define inst_trap_return(ins) (ins & 0)\r
-#define inst_return(ins) (ins & 0)\r
-#define inst_call(ins) (ins & 0)\r
-#define inst_branch(ins) (ins & 0)\r
-#define inst_load(ins) (ins & 0)\r
-#define inst_store(ins) (ins & 0)\r
-#define inst_unconditional_flow_transfer(ins) (ins & 0)\r
-\r
-#define branch_taken(ins, pc, regs) pc\r
-\r
-u_long db_register_value(db_regs_t *, int);\r
-int ddb_trap(unsigned long, unsigned long, unsigned long,\r
- unsigned long, struct trapframe *);\r
-\r
-int ia64_trap(int, int, db_regs_t *); /* See: trap.c */\r
-\r
-/*\r
- * We define some of our own commands.\r
- */\r
-#define DB_MACHINE_COMMANDS\r
-\r
-/*\r
- * We use Elf64 symbols in DDB.\r
- */\r
-#define DB_ELF_SYMBOLS\r
-#define DB_ELFSIZE 64\r
-\r
-/*\r
- * Stuff for KGDB.\r
- */\r
-typedef long kgdb_reg_t;\r
-#define KGDB_NUMREGS 66 /* from tm-alpha.h, NUM_REGS */\r
-#define KGDB_REG_V0 0\r
-#define KGDB_REG_T0 1\r
-#define KGDB_REG_T1 2\r
-#define KGDB_REG_T2 3\r
-#define KGDB_REG_T3 4\r
-#define KGDB_REG_T4 5\r
-#define KGDB_REG_T5 6\r
-#define KGDB_REG_T6 7\r
-#define KGDB_REG_T7 8\r
-#define KGDB_REG_S0 9\r
-#define KGDB_REG_S1 10\r
-#define KGDB_REG_S2 11\r
-#define KGDB_REG_S3 12\r
-#define KGDB_REG_S4 13\r
-#define KGDB_REG_S5 14\r
-#define KGDB_REG_S6 15 /* FP */\r
-#define KGDB_REG_A0 16\r
-#define KGDB_REG_A1 17\r
-#define KGDB_REG_A2 18\r
-#define KGDB_REG_A3 19\r
-#define KGDB_REG_A4 20\r
-#define KGDB_REG_A5 21\r
-#define KGDB_REG_T8 22\r
-#define KGDB_REG_T9 23\r
-#define KGDB_REG_T10 24\r
-#define KGDB_REG_T11 25\r
-#define KGDB_REG_RA 26\r
-#define KGDB_REG_T12 27\r
-#define KGDB_REG_AT 28\r
-#define KGDB_REG_GP 29\r
-#define KGDB_REG_SP 30\r
-#define KGDB_REG_ZERO 31\r
-#define KGDB_REG_F0 32\r
-#define KGDB_REG_F1 33\r
-#define KGDB_REG_F2 34\r
-#define KGDB_REG_F3 35\r
-#define KGDB_REG_F4 36\r
-#define KGDB_REG_F5 37\r
-#define KGDB_REG_F6 38\r
-#define KGDB_REG_F7 39\r
-#define KGDB_REG_F8 40\r
-#define KGDB_REG_F9 41\r
-#define KGDB_REG_F10 42\r
-#define KGDB_REG_F11 43\r
-#define KGDB_REG_F12 44\r
-#define KGDB_REG_F13 45\r
-#define KGDB_REG_F14 46\r
-#define KGDB_REG_F15 47\r
-#define KGDB_REG_F16 48\r
-#define KGDB_REG_F17 49\r
-#define KGDB_REG_F18 50\r
-#define KGDB_REG_F19 51\r
-#define KGDB_REG_F20 52\r
-#define KGDB_REG_F21 53\r
-#define KGDB_REG_F22 54\r
-#define KGDB_REG_F23 55\r
-#define KGDB_REG_F24 56\r
-#define KGDB_REG_F25 57\r
-#define KGDB_REG_F26 58\r
-#define KGDB_REG_F27 59\r
-#define KGDB_REG_F28 60\r
-#define KGDB_REG_F29 61\r
-#define KGDB_REG_F30 62\r
-#define KGDB_REG_F31 63\r
-#define KGDB_REG_PC 64\r
-#define KGDB_REG_VFP 65\r
-\r
-/* Too much? Must be large enough for register transfer. */\r
-#define KGDB_BUFLEN 1024\r
-\r
-#endif /* _IA64_DB_MACHDEP_H_ */\r
+++ /dev/null
-/* $NetBSD: dig64.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2002 Marcel Moolenaar\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- *\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_DIG64_H_\r
-#define _MACHINE_DIG64_H_\r
-\r
-struct dig64_gas {\r
- uint8_t addr_space;\r
- uint8_t bit_width;\r
- uint8_t bit_offset;\r
- uint8_t _reserved_;\r
- /*\r
- * XXX using a 64-bit type for the address would cause padding and\r
- * using __packed would cause unaligned accesses...\r
- */\r
- uint32_t addr_low;\r
- uint32_t addr_high;\r
-};\r
-\r
-struct dig64_hcdp_entry {\r
- uint8_t type;\r
-#define DIG64_HCDP_CONSOLE 0\r
-#define DIG64_HCDP_DBGPORT 1\r
- uint8_t databits;\r
- uint8_t parity;\r
- uint8_t stopbits;\r
- uint8_t pci_segment;\r
- uint8_t pci_bus;\r
- uint8_t pci_device:5;\r
- uint8_t _reserved1_:3;\r
- uint8_t pci_function:3;\r
- uint8_t _reserved2_:3;\r
- uint8_t interrupt:1;\r
- uint8_t pci_flag:1;\r
- /*\r
- * XXX using a 64-bit type for the baudrate would cause padding and\r
- * using __packed would cause unaligned accesses...\r
- */\r
- uint32_t baud_low;\r
- uint32_t baud_high;\r
- struct dig64_gas address;\r
- uint16_t pci_devid;\r
- uint16_t pci_vendor;\r
- uint32_t irq;\r
- uint32_t pclock;\r
- uint8_t pci_interface;\r
- uint8_t _reserved3_[7];\r
-};\r
-\r
-struct dig64_hcdp_table {\r
- char signature[4];\r
-#define HCDP_SIGNATURE "HCDP"\r
- uint32_t length;\r
- uint8_t revision;\r
- uint8_t checksum;\r
- char oem_id[6];\r
- char oem_tbl_id[8];\r
- uint32_t oem_rev;\r
- char creator_id[4];\r
- uint32_t creator_rev;\r
- uint32_t entries;\r
- struct dig64_hcdp_entry entry[1];\r
-};\r
-\r
-#endif\r
+++ /dev/null
-/* $NetBSD: disklabel.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*\r
- * Copyright (c) 1994 Christopher G. Demetriou\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by Christopher G. Demetriou.\r
- * 4. The name of the author may not be used to endorse or promote products\r
- * derived from this software without specific prior written permission\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#ifndef _MACHINE_DISKLABEL_H_\r
-#define _MACHINE_DISKLABEL_H_\r
-\r
-#define LABELSECTOR 1 /* sector containing label */\r
-#define LABELOFFSET 0 /* offset of label in sector */\r
-#define MAXPARTITIONS 16 /* number of partitions */\r
-#define OLDMAXPARTITIONS 8 /* number of partitions before 1.6 */\r
-#define RAW_PART 3 /* raw partition: XX?d (XXX) */\r
-\r
-/*\r
- * We use the highest bit of the minor number for the partition number.\r
- * This maintains backward compatibility with device nodes created before\r
- * MAXPARTITIONS was increased.\r
- */\r
-#define __I386_MAXDISKS ((1 << 20) / MAXPARTITIONS)\r
-#define DISKUNIT(dev) ((minor(dev) / OLDMAXPARTITIONS) % __I386_MAXDISKS)\r
-#define DISKPART(dev) ((minor(dev) % OLDMAXPARTITIONS) + \\r
- ((minor(dev) / (__I386_MAXDISKS * OLDMAXPARTITIONS)) * OLDMAXPARTITIONS))\r
-#define DISKMINOR(unit, part) \\r
- (((unit) * OLDMAXPARTITIONS) + ((part) % OLDMAXPARTITIONS) + \\r
- ((part) / OLDMAXPARTITIONS) * (__I386_MAXDISKS * OLDMAXPARTITIONS))\r
-\r
-/* Pull in MBR partition definitions. */\r
-#if HAVE_NBTOOL_CONFIG_H\r
-#include <nbinclude/sys/bootblock.h>\r
-#else\r
-#include <sys/bootblock.h>\r
-#endif /* HAVE_NBTOOL_CONFIG_H */\r
-\r
-#ifndef __ASSEMBLER__\r
-#if HAVE_NBTOOL_CONFIG_H\r
-#include <nbinclude/sys/dkbad.h>\r
-#else\r
-#include <sys/dkbad.h>\r
-#endif /* HAVE_NBTOOL_CONFIG_H */\r
-struct cpu_disklabel {\r
- struct dkbad bad;\r
-};\r
-#endif\r
-\r
-#endif /* _MACHINE_DISKLABEL_H_ */\r
+++ /dev/null
-/* $NetBSD: efi.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2004 Marcel Moolenaar\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- *\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_EFI_H_\r
-#define _MACHINE_EFI_H_\r
-\r
-#include <sys/uuid.h>\r
-\r
-#define EFI_PAGE_SHIFT 12\r
-#define EFI_PAGE_SIZE (1 << EFI_PAGE_SHIFT)\r
-#define EFI_PAGE_MASK (EFI_PAGE_SIZE - 1)\r
-\r
-#define EFI_TABLE_ACPI20 \\r
- {0x8868e871,0xe4f1,0x11d3,0xbc,0x22,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define EFI_TABLE_SAL \\r
- {0xeb9d2d32,0x2d88,0x11d3,0x9a,0x16,{0x00,0x90,0x27,0x3f,0xc1,0x4d}}\r
-\r
-enum efi_reset {\r
- EFI_RESET_COLD,\r
- EFI_RESET_WARM\r
-};\r
-\r
-typedef uint16_t efi_char;\r
-typedef unsigned long efi_status;\r
-\r
-struct efi_cfgtbl {\r
- struct uuid ct_uuid;\r
- uint64_t ct_data;\r
-};\r
-\r
-struct efi_md {\r
- uint32_t md_type;\r
-#define EFI_MD_TYPE_NULL 0\r
-#define EFI_MD_TYPE_CODE 1 /* Loader text. */\r
-#define EFI_MD_TYPE_DATA 2 /* Loader data. */\r
-#define EFI_MD_TYPE_BS_CODE 3 /* Boot services text. */\r
-#define EFI_MD_TYPE_BS_DATA 4 /* Boot services data. */\r
-#define EFI_MD_TYPE_RT_CODE 5 /* Runtime services text. */\r
-#define EFI_MD_TYPE_RT_DATA 6 /* Runtime services data. */\r
-#define EFI_MD_TYPE_FREE 7 /* Unused/free memory. */\r
-#define EFI_MD_TYPE_BAD 8 /* Bad memory */\r
-#define EFI_MD_TYPE_RECLAIM 9 /* ACPI reclaimable memory. */\r
-#define EFI_MD_TYPE_FIRMWARE 10 /* ACPI NV memory */\r
-#define EFI_MD_TYPE_IOMEM 11 /* Memory-mapped I/O. */\r
-#define EFI_MD_TYPE_IOPORT 12 /* I/O port space. */\r
-#define EFI_MD_TYPE_PALCODE 13 /* PAL */\r
- uint32_t __pad;\r
- uint64_t md_phys;\r
- void *md_virt;\r
- uint64_t md_pages;\r
- uint64_t md_attr;\r
-#define EFI_MD_ATTR_UC 0x0000000000000001UL\r
-#define EFI_MD_ATTR_WC 0x0000000000000002UL\r
-#define EFI_MD_ATTR_WT 0x0000000000000004UL\r
-#define EFI_MD_ATTR_WB 0x0000000000000008UL\r
-#define EFI_MD_ATTR_UCE 0x0000000000000010UL\r
-#define EFI_MD_ATTR_WP 0x0000000000001000UL\r
-#define EFI_MD_ATTR_RP 0x0000000000002000UL\r
-#define EFI_MD_ATTR_XP 0x0000000000004000UL\r
-#define EFI_MD_ATTR_RT 0x8000000000000000UL\r
-};\r
-\r
-struct efi_tm {\r
- uint16_t tm_year; /* 1998 - 20XX */\r
- uint8_t tm_mon; /* 1 - 12 */\r
- uint8_t tm_mday; /* 1 - 31 */\r
- uint8_t tm_hour; /* 0 - 23 */\r
- uint8_t tm_min; /* 0 - 59 */\r
- uint8_t tm_sec; /* 0 - 59 */\r
- uint8_t __pad1;\r
- uint32_t tm_nsec; /* 0 - 999,999,999 */\r
- int16_t tm_tz; /* -1440 to 1440 or 2047 */\r
- uint8_t tm_dst;\r
- uint8_t __pad2;\r
-};\r
-\r
-struct efi_tmcap {\r
- uint32_t tc_res; /* 1e-6 parts per million */\r
- uint32_t tc_prec; /* hertz */\r
- uint8_t tc_stz; /* Set clears sub-second time */\r
-};\r
-\r
-struct efi_tblhdr {\r
- uint64_t th_sig;\r
- uint32_t th_rev;\r
- uint32_t th_hdrsz;\r
- uint32_t th_crc32;\r
- uint32_t __res;\r
-};\r
-\r
-struct efi_rt {\r
- struct efi_tblhdr rt_hdr;\r
- efi_status (*rt_gettime)(struct efi_tm *, struct efi_tmcap *);\r
- efi_status (*rt_settime)(struct efi_tm *);\r
- efi_status (*rt_getwaketime)(uint8_t *, uint8_t *,\r
- struct efi_tm *);\r
- efi_status (*rt_setwaketime)(uint8_t, struct efi_tm *);\r
- efi_status (*rt_setvirtual)(u_long, u_long, uint32_t,\r
- struct efi_md *);\r
- efi_status (*rt_cvtptr)(u_long, void **);\r
- efi_status (*rt_getvar)(efi_char *, struct uuid *, uint32_t *,\r
- u_long *, void *);\r
- efi_status (*rt_scanvar)(u_long *, efi_char *, struct uuid *);\r
- efi_status (*rt_setvar)(efi_char *, struct uuid *, uint32_t,\r
- u_long, void *);\r
- efi_status (*rt_gethicnt)(uint32_t *);\r
- efi_status (*rt_reset)(enum efi_reset, efi_status, u_long,\r
- efi_char *);\r
-};\r
-\r
-struct efi_systbl {\r
- struct efi_tblhdr st_hdr;\r
-#define EFI_SYSTBL_SIG 0x5453595320494249UL\r
- efi_char *st_fwvendor;\r
- uint32_t st_fwrev;\r
- uint32_t __pad;\r
- void *st_cin;\r
- void *st_cinif;\r
- void *st_cout;\r
- void *st_coutif;\r
- void *st_cerr;\r
- void *st_cerrif;\r
- uint64_t st_rt;\r
- void *st_bs;\r
- u_long st_entries;\r
- uint64_t st_cfgtbl;\r
-};\r
-\r
-void efi_boot_finish(void);\r
-int efi_boot_minimal(uint64_t);\r
-void *efi_get_table(struct uuid *);\r
-void efi_get_time(struct efi_tm *);\r
-struct efi_md *efi_md_first(void);\r
-struct efi_md *efi_md_next(struct efi_md *);\r
-void efi_reset_system(void);\r
-efi_status efi_set_time(struct efi_tm *);\r
-\r
-#endif /* _MACHINE_EFI_H_ */\r
+++ /dev/null
-/* $NetBSD */\r
-\r
-/*-\r
- * Copyright (c) 1996-1997 John D. Polstra.\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD: src/sys/ia64/include/elf.h,v 1.11 2003/09/25 01:10:24 peter Exp $\r
- */\r
-\r
-\r
-#define ELF32_MACHDEP_ENDIANNESS XXX /* break compilation */\r
-#define ELF32_MACHDEP_ID_CASES \\r
- /* no 32-bit ELF machine types supported until 32bit emu */\r
-\r
-#define ELF64_MACHDEP_ENDIANNESS ELFDATA2LSB\r
-#define ELF64_MACHDEP_ID_CASES \\r
- case EM_IA_64: \\r
- break;\r
-\r
-#define ELF64_MACHDEP_ID EM_IA_64 /* XXX */\r
-\r
-#define ARCH_ELFSIZE 64 /* MD native binary size */\r
-\r
-/*\r
- * Relocation types.\r
- */\r
-\r
-/* Name Value Field Calculation */\r
-#define R_IA64_NONE 0 /* None */\r
-#define R_IA64_IMM14 0x21 /* immediate14 S + A */\r
-#define R_IA64_IMM22 0x22 /* immediate22 S + A */\r
-#define R_IA64_IMM64 0x23 /* immediate64 S + A */\r
-#define R_IA64_DIR32MSB 0x24 /* word32 MSB S + A */\r
-#define R_IA64_DIR32LSB 0x25 /* word32 LSB S + A */\r
-#define R_IA64_DIR64MSB 0x26 /* word64 MSB S + A */\r
-#define R_IA64_DIR64LSB 0x27 /* word64 LSB S + A */\r
-#define R_IA64_GPREL22 0x2a /* immediate22 @gprel(S + A) */\r
-#define R_IA64_GPREL64I 0x2b /* immediate64 @gprel(S + A) */\r
-#define R_IA64_GPREL64MSB 0x2e /* word64 MSB @gprel(S + A) */\r
-#define R_IA64_GPREL64LSB 0x2f /* word64 LSB @gprel(S + A) */\r
-#define R_IA64_LTOFF22 0x32 /* immediate22 @ltoff(S + A) */\r
-#define R_IA64_LTOFF64I 0x33 /* immediate64 @ltoff(S + A) */\r
-#define R_IA64_PLTOFF22 0x3a /* immediate22 @pltoff(S + A) */\r
-#define R_IA64_PLTOFF64I 0x3b /* immediate64 @pltoff(S + A) */\r
-#define R_IA64_PLTOFF64MSB 0x3e /* word64 MSB @pltoff(S + A) */\r
-#define R_IA64_PLTOFF64LSB 0x3f /* word64 LSB @pltoff(S + A) */\r
-#define R_IA64_FPTR64I 0x43 /* immediate64 @fptr(S + A) */\r
-#define R_IA64_FPTR32MSB 0x44 /* word32 MSB @fptr(S + A) */\r
-#define R_IA64_FPTR32LSB 0x45 /* word32 LSB @fptr(S + A) */\r
-#define R_IA64_FPTR64MSB 0x46 /* word64 MSB @fptr(S + A) */\r
-#define R_IA64_FPTR64LSB 0x47 /* word64 LSB @fptr(S + A) */\r
-#define R_IA64_PCREL21B 0x49 /* immediate21 form1 S + A - P */\r
-#define R_IA64_PCREL21M 0x4a /* immediate21 form2 S + A - P */\r
-#define R_IA64_PCREL21F 0x4b /* immediate21 form3 S + A - P */\r
-#define R_IA64_PCREL32MSB 0x4c /* word32 MSB S + A - P */\r
-#define R_IA64_PCREL32LSB 0x4d /* word32 LSB S + A - P */\r
-#define R_IA64_PCREL64MSB 0x4e /* word64 MSB S + A - P */\r
-#define R_IA64_PCREL64LSB 0x4f /* word64 LSB S + A - P */\r
-#define R_IA64_LTOFF_FPTR22 0x52 /* immediate22 @ltoff(@fptr(S + A)) */\r
-#define R_IA64_LTOFF_FPTR64I 0x53 /* immediate64 @ltoff(@fptr(S + A)) */\r
-#define R_IA64_LTOFF_FPTR32MSB 0x54 /* word32 MSB @ltoff(@fptr(S + A)) */\r
-#define R_IA64_LTOFF_FPTR32LSB 0x55 /* word32 LSB @ltoff(@fptr(S + A)) */\r
-#define R_IA64_LTOFF_FPTR64MSB 0x56 /* word64 MSB @ltoff(@fptr(S + A)) */\r
-#define R_IA64_LTOFF_FPTR64LSB 0x57 /* word64 LSB @ltoff(@fptr(S + A)) */\r
-#define R_IA64_SEGREL32MSB 0x5c /* word32 MSB @segrel(S + A) */\r
-#define R_IA64_SEGREL32LSB 0x5d /* word32 LSB @segrel(S + A) */\r
-#define R_IA64_SEGREL64MSB 0x5e /* word64 MSB @segrel(S + A) */\r
-#define R_IA64_SEGREL64LSB 0x5f /* word64 LSB @segrel(S + A) */\r
-#define R_IA64_SECREL32MSB 0x64 /* word32 MSB @secrel(S + A) */\r
-#define R_IA64_SECREL32LSB 0x65 /* word32 LSB @secrel(S + A) */\r
-#define R_IA64_SECREL64MSB 0x66 /* word64 MSB @secrel(S + A) */\r
-#define R_IA64_SECREL64LSB 0x67 /* word64 LSB @secrel(S + A) */\r
-#define R_IA64_REL32MSB 0x6c /* word32 MSB BD + A */\r
-#define R_IA64_REL32LSB 0x6d /* word32 LSB BD + A */\r
-#define R_IA64_REL64MSB 0x6e /* word64 MSB BD + A */\r
-#define R_IA64_REL64LSB 0x6f /* word64 LSB BD + A */\r
-#define R_IA64_LTV32MSB 0x74 /* word32 MSB S + A */\r
-#define R_IA64_LTV32LSB 0x75 /* word32 LSB S + A */\r
-#define R_IA64_LTV64MSB 0x76 /* word64 MSB S + A */\r
-#define R_IA64_LTV64LSB 0x77 /* word64 LSB S + A */\r
-#define R_IA64_IPLTMSB 0x80 /* function descriptor MSB special */\r
-#define R_IA64_IPLTLSB 0x81 /* function descriptor LSB speciaal */\r
-#define R_IA64_SUB 0x85 /* immediate64 A - S */\r
-#define R_IA64_LTOFF22X 0x86 /* immediate22 special */\r
-#define R_IA64_LDXMOV 0x87 /* immediate22 special */\r
-#define R_IA64_TPREL14 0x91 /* imm14 @tprel(S + A) */\r
-#define R_IA64_TPREL22 0x92 /* imm22 @tprel(S + A) */\r
-#define R_IA64_TPREL64I 0x93 /* imm64 @tprel(S + A) */\r
-#define R_IA64_TPREL64MSB 0x96 /* word64 MSB @tprel(S + A) */\r
-#define R_IA64_TPREL64LSB 0x97 /* word64 LSB @tprel(S + A) */\r
-#define R_IA64_LTOFF_TPREL22 0x9a /* imm22 @ltoff(@tprel(S+A)) */\r
-#define R_IA64_DTPMOD64MSB 0xa6 /* word64 MSB @dtpmod(S + A) */\r
-#define R_IA64_DTPMOD64LSB 0xa7 /* word64 LSB @dtpmod(S + A) */\r
-#define R_IA64_LTOFF_DTPMOD22 0xaa /* imm22 @ltoff(@dtpmod(S+A)) */\r
-#define R_IA64_DTPREL14 0xb1 /* imm14 @dtprel(S + A) */\r
-#define R_IA64_DTPREL22 0xb2 /* imm22 @dtprel(S + A) */\r
-#define R_IA64_DTPREL64I 0xb3 /* imm64 @dtprel(S + A) */\r
-#define R_IA64_DTPREL32MSB 0xb4 /* word32 MSB @dtprel(S + A) */\r
-#define R_IA64_DTPREL32LSB 0xb5 /* word32 LSB @dtprel(S + A) */\r
-#define R_IA64_DTPREL64MSB 0xb6 /* word64 MSB @dtprel(S + A) */\r
-#define R_IA64_DTPREL64LSB 0xb7 /* word64 LSB @dtprel(S + A) */\r
-#define R_IA64_LTOFF_DTPREL22 0xba /* imm22 @ltoff(@dtprel(S+A)) */\r
-\r
-/* p_type */\r
-\r
-#define PT_IA_64_ARCHEXT 0x70000000 /* segment contains a section of type SHT_IA_64_EXT */\r
-#define PT_IA_64_UNWIND 0x70000001 /* segment contains the stack unwind tables */\r
-\r
-/* p_flags */\r
-\r
-#define PF_IA_64_NORECOV 0x80000000 /* segment contains the stack unwind tables */\r
-\r
-/* sh_type */\r
-\r
-#define SHT_IA_64_EXT 0x70000000 /* section contains product specific extension bits */\r
-#define SHT_IA_64_UNWIND 0x70000001 /* section contains unwind function table entries for stack unwinding */\r
-#define SHT_IA_64_LOPSREG 0x78000000 /* reserved for implementation-specific section types */\r
-#define SHT_IA_64_HIPSREG 0x7fffffff /* Ditto */\r
-#define SHT_IA_64_PRIORITY_INIT 0x79000000 /* section contains priority initialization record */\r
-\r
-/* sh_flags */\r
-\r
-#define SHF_IA_64_SHORT 0x10000000 /* section must be placed near gp. */\r
-#define SHF_IA_64_NORECOV 0x20000000 /* section contains code that uses speculative instructions without\r
- * recovery code\r
- */\r
-\r
-\r
-\r
+++ /dev/null
-/* $NetBSD: endian.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-#include <sys/endian.h>\r
+++ /dev/null
-/* $NetBSD: endian_machdep.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-#define _BYTE_ORDER _LITTLE_ENDIAN\r
+++ /dev/null
-/* $NetBSD: float.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-#include <sys/float_ieee754.h>\r
-\r
-\r
-/* #ifndef _IA64_FLOAT_H_ */\r
-/* #define _IA64_FLOAT_H_ */\r
-\r
-/* #define LDBL_MANT_DIG 64 */\r
-/* #define LDBL_EPSILON 1.0842021724855044340E-19L */\r
-/* #define LDBL_DIG 18 */\r
-/* #define LDBL_MIN_EXP (-16381) */\r
-/* #define LDBL_MIN 3.3621031431120935063E-4932L */\r
-/* #define LDBL_MIN_10_EXP (-4931) */\r
-/* #define LDBL_MAX_EXP 16384 */\r
-/* #define LDBL_MAX 1.1897314953572317650E+4932L */\r
-/* #define LDBL_MAX_10_EXP 4932 */\r
-\r
-/* #include <sys/float_ieee754.h> */\r
-\r
-/* #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ */\r
-/* !defined(_XOPEN_SOURCE) || \ */\r
-/* ((__STDC_VERSION__ - 0) >= 199901L) || \ */\r
-/* ((_POSIX_C_SOURCE - 0) >= 200112L) || \ */\r
-/* ((_XOPEN_SOURCE - 0) >= 600) || \ */\r
-/* defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) */\r
-/* #define DECIMAL_DIG 35 */\r
-/* #endif /\* !defined(_ANSI_SOURCE) && ... *\/ */\r
-\r
-/* #endif /\* _IA64_FLOAT_H_ *\/ */\r
+++ /dev/null
-/* $NetBSD: ia64_cpu.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2000 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_IA64_CPU_H_\r
-#define _MACHINE_IA64_CPU_H_\r
-\r
-/*\r
- * Definition of PSR and IPSR bits.\r
- */\r
-#define IA64_PSR_BE 0x0000000000000002\r
-#define IA64_PSR_UP 0x0000000000000004\r
-#define IA64_PSR_AC 0x0000000000000008\r
-#define IA64_PSR_MFL 0x0000000000000010\r
-#define IA64_PSR_MFH 0x0000000000000020\r
-#define IA64_PSR_IC 0x0000000000002000\r
-#define IA64_PSR_I 0x0000000000004000\r
-#define IA64_PSR_PK 0x0000000000008000\r
-#define IA64_PSR_DT 0x0000000000020000\r
-#define IA64_PSR_DFL 0x0000000000040000\r
-#define IA64_PSR_DFH 0x0000000000080000\r
-#define IA64_PSR_SP 0x0000000000100000\r
-#define IA64_PSR_PP 0x0000000000200000\r
-#define IA64_PSR_DI 0x0000000000400000\r
-#define IA64_PSR_SI 0x0000000000800000\r
-#define IA64_PSR_DB 0x0000000001000000\r
-#define IA64_PSR_LP 0x0000000002000000\r
-#define IA64_PSR_TB 0x0000000004000000\r
-#define IA64_PSR_RT 0x0000000008000000\r
-#define IA64_PSR_CPL 0x0000000300000000\r
-#define IA64_PSR_CPL_KERN 0x0000000000000000\r
-#define IA64_PSR_CPL_1 0x0000000100000000\r
-#define IA64_PSR_CPL_2 0x0000000200000000\r
-#define IA64_PSR_CPL_USER 0x0000000300000000\r
-#define IA64_PSR_IS 0x0000000400000000\r
-#define IA64_PSR_MC 0x0000000800000000\r
-#define IA64_PSR_IT 0x0000001000000000\r
-#define IA64_PSR_ID 0x0000002000000000\r
-#define IA64_PSR_DA 0x0000004000000000\r
-#define IA64_PSR_DD 0x0000008000000000\r
-#define IA64_PSR_SS 0x0000010000000000\r
-#define IA64_PSR_RI 0x0000060000000000\r
-#define IA64_PSR_RI_0 0x0000000000000000\r
-#define IA64_PSR_RI_1 0x0000020000000000\r
-#define IA64_PSR_RI_2 0x0000040000000000\r
-#define IA64_PSR_ED 0x0000080000000000\r
-#define IA64_PSR_BN 0x0000100000000000\r
-#define IA64_PSR_IA 0x0000200000000000\r
-\r
-/*\r
- * Definition of ISR bits.\r
- */\r
-#define IA64_ISR_CODE 0x000000000000ffff\r
-#define IA64_ISR_VECTOR 0x0000000000ff0000\r
-#define IA64_ISR_X 0x0000000100000000\r
-#define IA64_ISR_W 0x0000000200000000\r
-#define IA64_ISR_R 0x0000000400000000\r
-#define IA64_ISR_NA 0x0000000800000000\r
-#define IA64_ISR_SP 0x0000001000000000\r
-#define IA64_ISR_RS 0x0000002000000000\r
-#define IA64_ISR_IR 0x0000004000000000\r
-#define IA64_ISR_NI 0x0000008000000000\r
-#define IA64_ISR_SO 0x0000010000000000\r
-#define IA64_ISR_EI 0x0000060000000000\r
-#define IA64_ISR_EI_0 0x0000000000000000\r
-#define IA64_ISR_EI_1 0x0000020000000000\r
-#define IA64_ISR_EI_2 0x0000040000000000\r
-#define IA64_ISR_ED 0x0000080000000000\r
-\r
-/*\r
- * Vector numbers for various ia64 interrupts.\r
- */\r
-#define IA64_VEC_VHPT 0\r
-#define IA64_VEC_ITLB 1\r
-#define IA64_VEC_DTLB 2\r
-#define IA64_VEC_ALT_ITLB 3\r
-#define IA64_VEC_ALT_DTLB 4\r
-#define IA64_VEC_NESTED_DTLB 5\r
-#define IA64_VEC_IKEY_MISS 6\r
-#define IA64_VEC_DKEY_MISS 7\r
-#define IA64_VEC_DIRTY_BIT 8\r
-#define IA64_VEC_INST_ACCESS 9\r
-#define IA64_VEC_DATA_ACCESS 10\r
-#define IA64_VEC_BREAK 11\r
-#define IA64_VEC_EXT_INTR 12\r
-#define IA64_VEC_PAGE_NOT_PRESENT 20\r
-#define IA64_VEC_KEY_PERMISSION 21\r
-#define IA64_VEC_INST_ACCESS_RIGHTS 22\r
-#define IA64_VEC_DATA_ACCESS_RIGHTS 23\r
-#define IA64_VEC_GENERAL_EXCEPTION 24\r
-#define IA64_VEC_DISABLED_FP 25\r
-#define IA64_VEC_NAT_CONSUMPTION 26\r
-#define IA64_VEC_SPECULATION 27\r
-#define IA64_VEC_DEBUG 29\r
-#define IA64_VEC_UNALIGNED_REFERENCE 30\r
-#define IA64_VEC_UNSUPP_DATA_REFERENCE 31\r
-#define IA64_VEC_FLOATING_POINT_FAULT 32\r
-#define IA64_VEC_FLOATING_POINT_TRAP 33\r
-#define IA64_VEC_LOWER_PRIVILEGE_TRANSFER 34\r
-#define IA64_VEC_TAKEN_BRANCH_TRAP 35\r
-#define IA64_VEC_SINGLE_STEP_TRAP 36\r
-#define IA64_VEC_IA32_EXCEPTION 45\r
-#define IA64_VEC_IA32_INTERCEPT 46\r
-#define IA64_VEC_IA32_INTERRUPT 47\r
-\r
-/*\r
- * IA-32 exceptions.\r
- */\r
-#define IA32_EXCEPTION_DIVIDE 0\r
-#define IA32_EXCEPTION_DEBUG 1\r
-#define IA32_EXCEPTION_BREAK 3\r
-#define IA32_EXCEPTION_OVERFLOW 4\r
-#define IA32_EXCEPTION_BOUND 5\r
-#define IA32_EXCEPTION_DNA 7\r
-#define IA32_EXCEPTION_NOT_PRESENT 11\r
-#define IA32_EXCEPTION_STACK_FAULT 12\r
-#define IA32_EXCEPTION_GPFAULT 13\r
-#define IA32_EXCEPTION_FPERROR 16\r
-#define IA32_EXCEPTION_ALIGNMENT_CHECK 17\r
-#define IA32_EXCEPTION_STREAMING_SIMD 19\r
-\r
-#define IA32_INTERCEPT_INSTRUCTION 0\r
-#define IA32_INTERCEPT_GATE 1\r
-#define IA32_INTERCEPT_SYSTEM_FLAG 2\r
-#define IA32_INTERCEPT_LOCK 4\r
-\r
-#ifndef _LOCORE\r
-\r
-/*\r
- * Various special ia64 instructions.\r
- */\r
-\r
-/*\r
- * Memory Fence.\r
- */\r
-static __inline void\r
-ia64_mf(void)\r
-{\r
- __asm __volatile("mf");\r
-}\r
-\r
-static __inline void\r
-ia64_mf_a(void)\r
-{\r
- __asm __volatile("mf.a");\r
-}\r
-\r
-/*\r
- * Flush Cache.\r
- */\r
-static __inline void\r
-ia64_fc(u_int64_t va)\r
-{\r
- __asm __volatile("fc %0" :: "r"(va));\r
-}\r
-\r
-/* \r
- * Flush Instruction Cache\r
- */\r
-\r
-static __inline void\r
-ia64_fc_i(u_int64_t va)\r
-{\r
- __asm __volatile("fc.i %0" :: "r"(va));\r
-}\r
-\r
-/*\r
- * Sync instruction stream.\r
- */\r
-static __inline void\r
-ia64_sync_i(void)\r
-{\r
- __asm __volatile("sync.i");\r
-}\r
-\r
-/*\r
- * Calculate address in VHPT for va.\r
- */\r
-static __inline u_int64_t\r
-ia64_thash(u_int64_t va)\r
-{\r
- u_int64_t result;\r
- __asm __volatile("thash %0=%1" : "=r" (result) : "r" (va));\r
- return result;\r
-}\r
-\r
-/*\r
- * Calculate VHPT tag for va.\r
- */\r
-static __inline u_int64_t\r
-ia64_ttag(u_int64_t va)\r
-{\r
- u_int64_t result;\r
- __asm __volatile("ttag %0=%1" : "=r" (result) : "r" (va));\r
- return result;\r
-}\r
-\r
-/*\r
- * Convert virtual address to physical.\r
- */\r
-static __inline u_int64_t\r
-ia64_tpa(u_int64_t va)\r
-{\r
- u_int64_t result;\r
- __asm __volatile("tpa %0=%1" : "=r" (result) : "r" (va));\r
- return result;\r
-}\r
-\r
-/*\r
- * Generate a ptc.e instruction.\r
- */\r
-static __inline void\r
-ia64_ptc_e(u_int64_t v)\r
-{\r
- __asm __volatile("ptc.e %0;; srlz.d;;" :: "r"(v));\r
-}\r
-\r
-/*\r
- * Generate a ptc.g instruction.\r
- */\r
-static __inline void\r
-ia64_ptc_g(u_int64_t va, u_int64_t log2size)\r
-{\r
- __asm __volatile("ptc.g %0,%1;; srlz.d;;" :: "r"(va), "r"(log2size));\r
-}\r
-\r
-/*\r
- * Generate a ptc.ga instruction.\r
- */\r
-static __inline void\r
-ia64_ptc_ga(u_int64_t va, u_int64_t log2size)\r
-{\r
- __asm __volatile("ptc.ga %0,%1;; srlz.d;;" :: "r"(va), "r"(log2size));\r
-}\r
-\r
-/*\r
- * Generate a ptc.l instruction.\r
- */\r
-static __inline void\r
-ia64_ptc_l(u_int64_t va, u_int64_t log2size)\r
-{\r
- __asm __volatile("ptc.l %0,%1;; srlz.d;;" :: "r"(va), "r"(log2size));\r
-}\r
-\r
-/*\r
- * Read the value of psr.\r
- */\r
-static __inline u_int64_t\r
-ia64_get_psr(void)\r
-{\r
- u_int64_t result;\r
- __asm __volatile("mov %0=psr;;" : "=r" (result));\r
- return result;\r
-}\r
-\r
-/*\r
- * Define accessors for application registers.\r
- */\r
-\r
-#define IA64_AR(name) \\r
- \\r
-static __inline u_int64_t \\r
-ia64_get_##name(void) \\r
-{ \\r
- u_int64_t result; \\r
- __asm __volatile("mov %0=ar." #name : "=r" (result)); \\r
- return result; \\r
-} \\r
- \\r
-static __inline void \\r
-ia64_set_##name(u_int64_t v) \\r
-{ \\r
- __asm __volatile("mov ar." #name "=%0;;" :: "r" (v)); \\r
-}\r
-\r
-IA64_AR(k0)\r
-IA64_AR(k1)\r
-IA64_AR(k2)\r
-IA64_AR(k3)\r
-IA64_AR(k4)\r
-IA64_AR(k5)\r
-IA64_AR(k6)\r
-IA64_AR(k7)\r
-\r
-IA64_AR(rsc)\r
-IA64_AR(bsp)\r
-IA64_AR(bspstore)\r
-IA64_AR(rnat)\r
-\r
-IA64_AR(fcr)\r
-\r
-IA64_AR(eflag)\r
-IA64_AR(csd)\r
-IA64_AR(ssd)\r
-IA64_AR(cflg)\r
-IA64_AR(fsr)\r
-IA64_AR(fir)\r
-IA64_AR(fdr)\r
-\r
-IA64_AR(ccv)\r
-\r
-IA64_AR(unat)\r
-\r
-IA64_AR(fpsr)\r
-\r
-IA64_AR(itc)\r
-\r
-IA64_AR(pfs)\r
-IA64_AR(lc)\r
-IA64_AR(ec)\r
-\r
-/*\r
- * Define accessors for control registers.\r
- */\r
-\r
-#define IA64_CR(name) \\r
- \\r
-static __inline u_int64_t \\r
-ia64_get_##name(void) \\r
-{ \\r
- u_int64_t result; \\r
- __asm __volatile("mov %0=cr." #name : "=r" (result)); \\r
- return result; \\r
-} \\r
- \\r
-static __inline void \\r
-ia64_set_##name(u_int64_t v) \\r
-{ \\r
- __asm __volatile("mov cr." #name "=%0;;" :: "r" (v)); \\r
-}\r
-\r
-IA64_CR(dcr)\r
-IA64_CR(itm)\r
-IA64_CR(iva)\r
-\r
-IA64_CR(pta)\r
-\r
-IA64_CR(ipsr)\r
-IA64_CR(isr)\r
-\r
-IA64_CR(iip)\r
-IA64_CR(ifa)\r
-IA64_CR(itir)\r
-IA64_CR(iipa)\r
-IA64_CR(ifs)\r
-IA64_CR(iim)\r
-IA64_CR(iha)\r
-\r
-IA64_CR(lid)\r
-IA64_CR(ivr)\r
-IA64_CR(tpr)\r
-IA64_CR(eoi)\r
-IA64_CR(irr0)\r
-IA64_CR(irr1)\r
-IA64_CR(irr2)\r
-IA64_CR(irr3)\r
-IA64_CR(itv)\r
-IA64_CR(pmv)\r
-IA64_CR(cmcv)\r
-\r
-IA64_CR(lrr0)\r
-IA64_CR(lrr1)\r
-\r
-/*\r
- * Write a region register.\r
- */\r
-static __inline void\r
-ia64_set_rr(u_int64_t rrbase, u_int64_t v)\r
-{\r
- __asm __volatile("mov rr[%0]=%1;; srlz.d;;"\r
- :: "r"(rrbase), "r"(v) : "memory");\r
-}\r
-\r
-/*\r
- * Read a CPUID register.\r
- */\r
-static __inline u_int64_t\r
-ia64_get_cpuid(int i)\r
-{\r
- u_int64_t result;\r
- __asm __volatile("mov %0=cpuid[%1]"\r
- : "=r" (result) : "r"(i));\r
- return result;\r
-}\r
-\r
-static __inline void\r
-ia64_disable_highfp(void)\r
-{\r
- __asm __volatile("ssm psr.dfh;; srlz.d");\r
-}\r
-\r
-static __inline void\r
-ia64_enable_highfp(void)\r
-{\r
- __asm __volatile("rsm psr.dfh;; srlz.d");\r
-}\r
-\r
-#endif /* !_LOCORE */\r
-\r
-#endif /* _MACHINE_IA64_CPU_H_ */\r
-\r
+++ /dev/null
-\r
-#include <sys/ieee754.h>\r
+++ /dev/null
-/*-
- * Copyright (c) 2001 Doug Rabson
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD: src/sys/ia64/include/ieeefp.h,v 1.5.10.1.4.1 2010/06/14 02:09:06 kensmith Exp $
- */
-
-#ifndef _MACHINE_IEEEFP_H_
-#define _MACHINE_IEEEFP_H_
-
-#include <machine/fpu.h>
-
-typedef int fp_except_t;
-#define FP_X_INV IA64_FPSR_TRAP_VD /* invalid operation exception */
-#define FP_X_DZ IA64_FPSR_TRAP_ZD /* divide-by-zero exception */
-#define FP_X_OFL IA64_FPSR_TRAP_OD /* overflow exception */
-#define FP_X_UFL IA64_FPSR_TRAP_UD /* underflow exception */
-#define FP_X_IMP IA64_FPSR_TRAP_ID /* imprecise(inexact) exception */
-
-typedef enum {
- FP_RN = 0, /* round to nearest */
- FP_RM, /* round toward minus infinity */
- FP_RP, /* round toward plus infinity */
- FP_RZ /* round toward zero */
-} fp_rnd_t;
-
-#endif /* !_MACHINE_IEEEFP_H_ */
+++ /dev/null
-/* $NetBSD: int_const.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2001 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Klaus Klein.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#ifndef _IA64_INT_CONST_H_\r
-#define _IA64_INT_CONST_H_\r
-\r
-/* XXX: cherry: needs to be audited */\r
-/*\r
- * 7.18.4 Macros for integer constants\r
- */\r
-\r
-/* 7.18.4.1 Macros for minimum-width integer constants */\r
-\r
-#define INT8_C(c) c\r
-#define INT16_C(c) c\r
-#define INT32_C(c) c\r
-#define INT64_C(c) c ## L\r
-\r
-#define UINT8_C(c) c ## U\r
-#define UINT16_C(c) c ## U\r
-#define UINT32_C(c) c ## U\r
-#define UINT64_C(c) c ## UL\r
-\r
-/* 7.18.4.2 Macros for greatest-width integer constants */\r
-\r
-#define INTMAX_C(c) c ## L\r
-#define UINTMAX_C(c) c ## UL\r
-\r
-#endif /* !_IA64_INT_CONST_H_ */\r
+++ /dev/null
-/* $NetBSD: int_fmtio.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2001 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Klaus Klein.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#ifndef _IA64_INT_FMTIO_H_\r
-#define _IA64_INT_FMTIO_H_\r
-\r
-/*\r
- * 7.8.1 Macros for format specifiers\r
- */\r
-\r
-/* fprintf macros for signed integers */\r
-\r
-#define PRId8 "d" /* int8_t */\r
-#define PRId16 "d" /* int16_t */\r
-#define PRId32 "d" /* int32_t */\r
-#define PRId64 "ld" /* int64_t */\r
-#define PRIdLEAST8 "d" /* int_least8_t */\r
-#define PRIdLEAST16 "d" /* int_least16_t */\r
-#define PRIdLEAST32 "d" /* int_least32_t */\r
-#define PRIdLEAST64 "ld" /* int_least64_t */\r
-#define PRIdFAST8 "d" /* int_fast8_t */\r
-#define PRIdFAST16 "d" /* int_fast16_t */\r
-#define PRIdFAST32 "d" /* int_fast32_t */\r
-#define PRIdFAST64 "ld" /* int_fast64_t */\r
-#define PRIdMAX "ld" /* intmax_t */\r
-#define PRIdPTR "ld" /* intptr_t */\r
-\r
-#define PRIi8 "i" /* int8_t */\r
-#define PRIi16 "i" /* int16_t */\r
-#define PRIi32 "i" /* int32_t */\r
-#define PRIi64 "li" /* int64_t */\r
-#define PRIiLEAST8 "i" /* int_least8_t */\r
-#define PRIiLEAST16 "i" /* int_least16_t */\r
-#define PRIiLEAST32 "i" /* int_least32_t */\r
-#define PRIiLEAST64 "li" /* int_least64_t */\r
-#define PRIiFAST8 "i" /* int_fast8_t */\r
-#define PRIiFAST16 "i" /* int_fast16_t */\r
-#define PRIiFAST32 "i" /* int_fast32_t */\r
-#define PRIiFAST64 "li" /* int_fast64_t */\r
-#define PRIiMAX "li" /* intmax_t */\r
-#define PRIiPTR "li" /* intptr_t */\r
-\r
-/* fprintf macros for unsigned integers */\r
-\r
-#define PRIo8 "o" /* uint8_t */\r
-#define PRIo16 "o" /* uint16_t */\r
-#define PRIo32 "o" /* uint32_t */\r
-#define PRIo64 "lo" /* uint64_t */\r
-#define PRIoLEAST8 "o" /* uint_least8_t */\r
-#define PRIoLEAST16 "o" /* uint_least16_t */\r
-#define PRIoLEAST32 "o" /* uint_least32_t */\r
-#define PRIoLEAST64 "lo" /* uint_least64_t */\r
-#define PRIoFAST8 "o" /* uint_fast8_t */\r
-#define PRIoFAST16 "o" /* uint_fast16_t */\r
-#define PRIoFAST32 "o" /* uint_fast32_t */\r
-#define PRIoFAST64 "lo" /* uint_fast64_t */\r
-#define PRIoMAX "lo" /* uintmax_t */\r
-#define PRIoPTR "lo" /* uintptr_t */\r
-\r
-#define PRIu8 "u" /* uint8_t */\r
-#define PRIu16 "u" /* uint16_t */\r
-#define PRIu32 "u" /* uint32_t */\r
-#define PRIu64 "lu" /* uint64_t */\r
-#define PRIuLEAST8 "u" /* uint_least8_t */\r
-#define PRIuLEAST16 "u" /* uint_least16_t */\r
-#define PRIuLEAST32 "u" /* uint_least32_t */\r
-#define PRIuLEAST64 "lu" /* uint_least64_t */\r
-#define PRIuFAST8 "u" /* uint_fast8_t */\r
-#define PRIuFAST16 "u" /* uint_fast16_t */\r
-#define PRIuFAST32 "u" /* uint_fast32_t */\r
-#define PRIuFAST64 "lu" /* uint_fast64_t */\r
-#define PRIuMAX "lu" /* uintmax_t */\r
-#define PRIuPTR "lu" /* uintptr_t */\r
-\r
-#define PRIx8 "x" /* uint8_t */\r
-#define PRIx16 "x" /* uint16_t */\r
-#define PRIx32 "x" /* uint32_t */\r
-#define PRIx64 "lx" /* uint64_t */\r
-#define PRIxLEAST8 "x" /* uint_least8_t */\r
-#define PRIxLEAST16 "x" /* uint_least16_t */\r
-#define PRIxLEAST32 "x" /* uint_least32_t */\r
-#define PRIxLEAST64 "lx" /* uint_least64_t */\r
-#define PRIxFAST8 "x" /* uint_fast8_t */\r
-#define PRIxFAST16 "x" /* uint_fast16_t */\r
-#define PRIxFAST32 "x" /* uint_fast32_t */\r
-#define PRIxFAST64 "lx" /* uint_fast64_t */\r
-#define PRIxMAX "lx" /* uintmax_t */\r
-#define PRIxPTR "lx" /* uintptr_t */\r
-\r
-#define PRIX8 "X" /* uint8_t */\r
-#define PRIX16 "X" /* uint16_t */\r
-#define PRIX32 "X" /* uint32_t */\r
-#define PRIX64 "lX" /* uint64_t */\r
-#define PRIXLEAST8 "X" /* uint_least8_t */\r
-#define PRIXLEAST16 "X" /* uint_least16_t */\r
-#define PRIXLEAST32 "X" /* uint_least32_t */\r
-#define PRIXLEAST64 "lX" /* uint_least64_t */\r
-#define PRIXFAST8 "X" /* uint_fast8_t */\r
-#define PRIXFAST16 "X" /* uint_fast16_t */\r
-#define PRIXFAST32 "X" /* uint_fast32_t */\r
-#define PRIXFAST64 "lX" /* uint_fast64_t */\r
-#define PRIXMAX "lX" /* uintmax_t */\r
-#define PRIXPTR "lX" /* uintptr_t */\r
-\r
-/* fscanf macros for signed integers */\r
-\r
-#define SCNd8 "hhd" /* int8_t */\r
-#define SCNd16 "hd" /* int16_t */\r
-#define SCNd32 "d" /* int32_t */\r
-#define SCNd64 "ld" /* int64_t */\r
-#define SCNdLEAST8 "hhd" /* int_least8_t */\r
-#define SCNdLEAST16 "hd" /* int_least16_t */\r
-#define SCNdLEAST32 "d" /* int_least32_t */\r
-#define SCNdLEAST64 "ld" /* int_least64_t */\r
-#define SCNdFAST8 "d" /* int_fast8_t */\r
-#define SCNdFAST16 "d" /* int_fast16_t */\r
-#define SCNdFAST32 "d" /* int_fast32_t */\r
-#define SCNdFAST64 "ld" /* int_fast64_t */\r
-#define SCNdMAX "ld" /* intmax_t */\r
-#define SCNdPTR "ld" /* intptr_t */\r
-\r
-#define SCNi8 "hhi" /* int8_t */\r
-#define SCNi16 "hi" /* int16_t */\r
-#define SCNi32 "i" /* int32_t */\r
-#define SCNi64 "li" /* int64_t */\r
-#define SCNiLEAST8 "hhi" /* int_least8_t */\r
-#define SCNiLEAST16 "hi" /* int_least16_t */\r
-#define SCNiLEAST32 "i" /* int_least32_t */\r
-#define SCNiLEAST64 "li" /* int_least64_t */\r
-#define SCNiFAST8 "i" /* int_fast8_t */\r
-#define SCNiFAST16 "i" /* int_fast16_t */\r
-#define SCNiFAST32 "i" /* int_fast32_t */\r
-#define SCNiFAST64 "li" /* int_fast64_t */\r
-#define SCNiMAX "li" /* intmax_t */\r
-#define SCNiPTR "li" /* intptr_t */\r
-\r
-/* fscanf macros for unsigned integers */\r
-\r
-#define SCNo8 "hho" /* uint8_t */\r
-#define SCNo16 "ho" /* uint16_t */\r
-#define SCNo32 "o" /* uint32_t */\r
-#define SCNo64 "lo" /* uint64_t */\r
-#define SCNoLEAST8 "hho" /* uint_least8_t */\r
-#define SCNoLEAST16 "ho" /* uint_least16_t */\r
-#define SCNoLEAST32 "o" /* uint_least32_t */\r
-#define SCNoLEAST64 "lo" /* uint_least64_t */\r
-#define SCNoFAST8 "o" /* uint_fast8_t */\r
-#define SCNoFAST16 "o" /* uint_fast16_t */\r
-#define SCNoFAST32 "o" /* uint_fast32_t */\r
-#define SCNoFAST64 "lo" /* uint_fast64_t */\r
-#define SCNoMAX "lo" /* uintmax_t */\r
-#define SCNoPTR "lo" /* uintptr_t */\r
-\r
-#define SCNu8 "hhu" /* uint8_t */\r
-#define SCNu16 "hu" /* uint16_t */\r
-#define SCNu32 "u" /* uint32_t */\r
-#define SCNu64 "lu" /* uint64_t */\r
-#define SCNuLEAST8 "hhu" /* uint_least8_t */\r
-#define SCNuLEAST16 "hu" /* uint_least16_t */\r
-#define SCNuLEAST32 "u" /* uint_least32_t */\r
-#define SCNuLEAST64 "lu" /* uint_least64_t */\r
-#define SCNuFAST8 "u" /* uint_fast8_t */\r
-#define SCNuFAST16 "u" /* uint_fast16_t */\r
-#define SCNuFAST32 "u" /* uint_fast32_t */\r
-#define SCNuFAST64 "lu" /* uint_fast64_t */\r
-#define SCNuMAX "lu" /* uintmax_t */\r
-#define SCNuPTR "lu" /* uintptr_t */\r
-\r
-#define SCNx8 "hhx" /* uint8_t */\r
-#define SCNx16 "hx" /* uint16_t */\r
-#define SCNx32 "x" /* uint32_t */\r
-#define SCNx64 "lx" /* uint64_t */\r
-#define SCNxLEAST8 "hhx" /* uint_least8_t */\r
-#define SCNxLEAST16 "hx" /* uint_least16_t */\r
-#define SCNxLEAST32 "x" /* uint_least32_t */\r
-#define SCNxLEAST64 "lx" /* uint_least64_t */\r
-#define SCNxFAST8 "x" /* uint_fast8_t */\r
-#define SCNxFAST16 "x" /* uint_fast16_t */\r
-#define SCNxFAST32 "x" /* uint_fast32_t */\r
-#define SCNxFAST64 "lx" /* uint_fast64_t */\r
-#define SCNxMAX "lx" /* uintmax_t */\r
-#define SCNxPTR "lx" /* uintptr_t */\r
-\r
-#endif /* !_IA64_INT_FMTIO_H_ */\r
+++ /dev/null
-/* $NetBSD: int_limits.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2001 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Klaus Klein.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#ifndef _IA64_INT_LIMITS_H_\r
-#define _IA64_INT_LIMITS_H_\r
-\r
-/*\r
- * 7.18.2 Limits of specified-width integer types\r
- */\r
-\r
-/* 7.18.2.1 Limits of exact-width integer types */\r
-\r
-/* minimum values of exact-width signed integer types */\r
-#define INT8_MIN (-0x7f-1) /* int8_t */\r
-#define INT16_MIN (-0x7fff-1) /* int16_t */\r
-#define INT32_MIN (-0x7fffffff-1) /* int32_t */\r
-#define INT64_MIN (-0x7fffffffffffffffL-1) /* int64_t */\r
-\r
-/* maximum values of exact-width signed integer types */\r
-#define INT8_MAX 0x7f /* int8_t */\r
-#define INT16_MAX 0x7fff /* int16_t */\r
-#define INT32_MAX 0x7fffffff /* int32_t */\r
-#define INT64_MAX 0x7fffffffffffffffL /* int64_t */\r
-\r
-/* maximum values of exact-width unsigned integer types */\r
-#define UINT8_MAX 0xffU /* uint8_t */\r
-#define UINT16_MAX 0xffffU /* uint16_t */\r
-#define UINT32_MAX 0xffffffffU /* uint32_t */\r
-#define UINT64_MAX 0xffffffffffffffffUL /* uint64_t */\r
-\r
-/* 7.18.2.2 Limits of minimum-width integer types */\r
-\r
-/* minimum values of minimum-width signed integer types */\r
-#define INT_LEAST8_MIN (-0x7f-1) /* int_least8_t */\r
-#define INT_LEAST16_MIN (-0x7fff-1) /* int_least16_t */\r
-#define INT_LEAST32_MIN (-0x7fffffff-1) /* int_least32_t */\r
-#define INT_LEAST64_MIN (-0x7fffffffffffffffL-1) /* int_least64_t */\r
-\r
-/* maximum values of minimum-width signed integer types */\r
-#define INT_LEAST8_MAX 0x7f /* int_least8_t */\r
-#define INT_LEAST16_MAX 0x7fff /* int_least16_t */\r
-#define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */\r
-#define INT_LEAST64_MAX 0x7fffffffffffffffL /* int_least64_t */\r
-\r
-/* maximum values of minimum-width unsigned integer types */\r
-#define UINT_LEAST8_MAX 0xffU /* uint_least8_t */\r
-#define UINT_LEAST16_MAX 0xffffU /* uint_least16_t */\r
-#define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */\r
-#define UINT_LEAST64_MAX 0xffffffffffffffffUL /* uint_least64_t */\r
-\r
-/* 7.18.2.3 Limits of fastest minimum-width integer types */\r
- \r
-/* minimum values of fastest minimum-width signed integer types */\r
-#define INT_FAST8_MIN (-0x7fffffff-1) /* int_fast8_t */\r
-#define INT_FAST16_MIN (-0x7fffffff-1) /* int_fast16_t */\r
-#define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */\r
-#define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */\r
-\r
-/* maximum values of fastest minimum-width signed integer types */\r
-#define INT_FAST8_MAX 0x7fffffff /* int_fast8_t */\r
-#define INT_FAST16_MAX 0x7fffffff /* int_fast16_t */\r
-#define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */\r
-#define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */\r
-\r
-/* maximum values of fastest minimum-width unsigned integer types */\r
-#define UINT_FAST8_MAX 0xffffffffU /* uint_fast8_t */\r
-#define UINT_FAST16_MAX 0xffffffffU /* uint_fast16_t */\r
-#define UINT_FAST32_MAX 0xffffffffU /* uint_fast32_t */\r
-#define UINT_FAST64_MAX 0xffffffffffffffffULL /* uint_fast64_t */\r
-\r
-/* 7.18.2.4 Limits of integer types capable of holding object pointers */\r
-\r
-#define INTPTR_MIN (-0x7fffffffffffffffL-1) /* intptr_t */\r
-#define INTPTR_MAX 0x7fffffffffffffffL /* intptr_t */\r
-#define UINTPTR_MAX 0xffffffffffffffffUL /* uintptr_t */\r
-\r
-/* 7.18.2.5 Limits of greatest-width integer types */\r
-\r
-#define INTMAX_MIN (-0x7fffffffffffffffL-1) /* intmax_t */\r
-#define INTMAX_MAX 0x7fffffffffffffffL /* intmax_t */\r
-#define UINTMAX_MAX 0xffffffffffffffffUL /* uintmax_t */\r
-\r
-\r
-/*\r
- * 7.18.3 Limits of other integer types\r
- */\r
-\r
-/* limits of ptrdiff_t */\r
-#define PTRDIFF_MIN (-0x7fffffffffffffffL-1) /* ptrdiff_t */\r
-#define PTRDIFF_MAX 0x7fffffffffffffffL /* ptrdiff_t */\r
-\r
-/* limits of sig_atomic_t */\r
-#define SIG_ATOMIC_MIN (-0x7fffffffffffffffL-1) /* sig_atomic_t */\r
-#define SIG_ATOMIC_MAX 0x7fffffffffffffffL /* sig_atomic_t */\r
-\r
-/* limit of size_t */\r
-#define SIZE_MAX 0xffffffffffffffffUL /* size_t */\r
-\r
-#endif /* !_IA64_INT_LIMITS_H_ */\r
+++ /dev/null
-/** @file\r
- Minimum and Greatest Width Integer types.\r
-\r
- Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are licensed and made available under\r
- the terms and conditions of the BSD License that accompanies this distribution.\r
- The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- Portions Copyright (c) 2001 The NetBSD Foundation, Inc.\r
- All rights reserved.\r
-\r
- This code is derived from software contributed to The NetBSD Foundation\r
- by Klaus Klein.\r
-\r
- Redistribution and use in source and binary forms, with or without\r
- modification, are permitted provided that the following conditions\r
- are met:\r
- 1. Redistributions of source code must retain the above copyright\r
- notice, this list of conditions and the following disclaimer.\r
- 2. Redistributions in binary form must reproduce the above copyright\r
- notice, this list of conditions and the following disclaimer in the\r
- documentation and/or other materials provided with the distribution.\r
- 3. All advertising materials mentioning features or use of this software\r
- must display the following acknowledgement:\r
- This product includes software developed by the NetBSD\r
- Foundation, Inc. and its contributors.\r
- 4. Neither the name of The NetBSD Foundation nor the names of its\r
- contributors may be used to endorse or promote products derived\r
- from this software without specific prior written permission.\r
-\r
- THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- POSSIBILITY OF SUCH DAMAGE.\r
-\r
- NetBSD: int_mwgwtypes.h,v 1.1 2006/04/07 14:21:18 cherry Exp\r
-**/\r
-\r
-#ifndef _IA64_INT_MWGWTYPES_H_\r
-#define _IA64_INT_MWGWTYPES_H_\r
-\r
-/*\r
- * 7.18.1 Integer types\r
- */\r
-\r
-/* 7.18.1.2 Minimum-width integer types */\r
-\r
-typedef CHAR8 int_least8_t;\r
-typedef UINT8 uint_least8_t;\r
-typedef INT16 int_least16_t;\r
-typedef UINT16 uint_least16_t;\r
-typedef INT32 int_least32_t;\r
-typedef UINT32 uint_least32_t;\r
-typedef INT64 int_least64_t;\r
-typedef UINT64 uint_least64_t;\r
-\r
-/* 7.18.1.3 Fastest minimum-width integer types */\r
-typedef INT32 int_fast8_t;\r
-typedef UINT32 uint_fast8_t;\r
-typedef INT32 int_fast16_t;\r
-typedef UINT32 uint_fast16_t;\r
-typedef INT32 int_fast32_t;\r
-typedef UINT32 uint_fast32_t;\r
-typedef INT64 int_fast64_t;\r
-typedef UINT64 uint_fast64_t;\r
-\r
-/* 7.18.1.5 Greatest-width integer types */\r
-\r
-typedef INT64 intmax_t;\r
-typedef UINT64 uintmax_t;\r
-\r
-#endif /* !_IA64_INT_MWGWTYPES_H_ */\r
+++ /dev/null
-/* $NetBSD: int_types.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1990 The Regents of the University of California.\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * from: @(#)types.h 7.5 (Berkeley) 3/9/91\r
- */\r
-\r
-#ifndef _IA64_INT_TYPES_H_\r
-#define _IA64_INT_TYPES_H_\r
-\r
-/*\r
- * 7.18.1 Integer types\r
- */\r
-\r
-/* 7.18.1.1 Exact-width integer types */\r
-\r
-typedef __signed char __int8_t;\r
-typedef unsigned char __uint8_t;\r
-typedef short int __int16_t;\r
-typedef unsigned short int __uint16_t;\r
-typedef int __int32_t;\r
-typedef unsigned int __uint32_t;\r
-#ifdef __COMPILER_INT64__\r
-typedef __COMPILER_INT64__ __int64_t;\r
-typedef __COMPILER_UINT64__ __uint64_t;\r
-#elif defined(_LP64)\r
-typedef long int __int64_t;\r
-typedef unsigned long int __uint64_t;\r
-#else\r
-/* LONGLONG */\r
-typedef long long int __int64_t;\r
-/* LONGLONG */\r
-typedef unsigned long long int __uint64_t;\r
-#endif\r
-\r
-#define __BIT_TYPES_DEFINED__\r
-\r
-/* 7.18.1.4 Integer types capable of holding object pointers */\r
-\r
-#ifdef _LP64\r
-typedef long int __intptr_t;\r
-typedef unsigned long int __uintptr_t;\r
-#else\r
-typedef int __intptr_t;\r
-typedef unsigned int __uintptr_t;\r
-#endif\r
-\r
-#endif /* !_IA64_INT_TYPES_H_ */\r
+++ /dev/null
-/* $NetBSD: intr.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/* XXX: cherry: To Be fixed when we switch on interrupts. */\r
-\r
-#ifndef _IA64_INTR_H_\r
-#define _IA64_INTR_H_\r
-\r
-#define IPL_NONE 0 /* XXX: Placeholder */\r
-#define IPL_BIO 0 /* XXX: Placeholder */\r
-#define IPL_NET 0 /* XXX: Placeholder */\r
-#define IPL_TTY 0 /* XXX: Placeholder */\r
-#define IPL_CLOCK 0 /* XXX: Placeholder */\r
-#define IPL_HIGH 0 /* XXX: Placeholder */\r
-#define IPL_SERIAL 0 /* XXX: Placeholder */\r
-#define IPL_SCHED 0 /* XXX: Placeholder */\r
-#define IPL_VM 0 /* XXX: Placeholder */\r
-\r
-#define IPL_SOFTCLOCK 0 /* XXX: Placeholder */\r
-#define IPL_SOFTNET 0 /* XXX: Placeholder */\r
-#define IPL_SOFTSERIAL 0 /* XXX: Placeholder */\r
-\r
-static __inline int splraise(int dummy) { return 0; }\r
-static __inline void spllower(int dummy) { }\r
-\r
-/*\r
- * Hardware interrupt masks\r
- */\r
-#define splbio() splraise(IPL_BIO)\r
-#define splnet() splraise(IPL_NET)\r
-#define spltty() splraise(IPL_TTY)\r
-#define splaudio() splraise(IPL_AUDIO)\r
-#define splclock() splraise(IPL_CLOCK)\r
-#define splstatclock() splclock()\r
-#define splserial() splraise(IPL_SERIAL)\r
-#define splipi() splraise(IPL_IPI)\r
-\r
-\r
-/*\r
- * Miscellaneous\r
- */\r
-#define splvm() splraise(IPL_VM)\r
-#define splhigh() splraise(IPL_HIGH)\r
-#define spl0() spllower(IPL_NONE)\r
-#define splsched() splraise(IPL_SCHED)\r
-#define spllock() splhigh()\r
-#define splx(x) spllower(x)\r
-\r
-/*\r
- * Software interrupt masks\r
- *\r
- * NOTE: spllowersoftclock() is used by hardclock() to lower the priority from\r
- * clock to softclock before it calls softclock().\r
- */\r
-\r
-#define spllowersoftclock() spllower(IPL_SOFTCLOCK)\r
-#define splsoftclock() splraise(IPL_SOFTCLOCK)\r
-#define splsoftnet() splraise(IPL_SOFTNET)\r
-#define splsoftserial() splraise(IPL_SOFTSERIAL)\r
-\r
-#endif /* ! _IA64_INTR_H_ */\r
+++ /dev/null
-/* $NetBSD: intrcnt.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1995, 1996 Carnegie-Mellon University.\r
- * All rights reserved.\r
- *\r
- * Author: Chris G. Demetriou\r
- *\r
- * Permission to use, copy, modify and distribute this software and\r
- * its documentation is hereby granted, provided that both the copyright\r
- * notice and this permission notice appear in all copies of the\r
- * software, derivative works or modified versions, and any portions\r
- * thereof, and that both notices appear in supporting documentation.\r
- *\r
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"\r
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND\r
- * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.\r
- *\r
- * Carnegie Mellon requests users of this software to return to\r
- *\r
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU\r
- * School of Computer Science\r
- * Carnegie Mellon University\r
- * Pittsburgh PA 15213-3890\r
- *\r
- * any improvements or extensions that they make and grant Carnegie the\r
- * rights to redistribute these changes.\r
- */\r
-\r
-#define INTRCNT_CLOCK 0\r
-#define INTRCNT_ISA_IRQ (INTRCNT_CLOCK + 1)\r
-#define INTRCNT_ISA_IRQ_LEN 16\r
-#define INTRCNT_OTHER_BASE (INTRCNT_ISA_IRQ + INTRCNT_ISA_IRQ_LEN)\r
-#define INTRCNT_OTHER_LEN 240\r
-#define INTRCNT_COUNT (INTRCNT_OTHER_BASE + INTRCNT_OTHER_LEN)\r
-\r
-/*\r
- * Maximum name length in intrnames table (including terminating '\0'.\r
- * Since vmstat(8) assumes a maximum length of 13 (including '\0'), we're\r
- * pretty much limited to that (unless we don't care about the alignment\r
- * of the columns :-)\r
- */\r
-#define INTRNAME_LEN 13\r
+++ /dev/null
-/* $NetBSD: limits.h,v 1.2 2006/05/14 21:55:38 elad Exp $ */\r
-\r
-/*\r
- * Copyright (c) 1988 The Regents of the University of California.\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)limits.h 7.2 (Berkeley) 6/28/90\r
- */\r
-\r
-#ifndef _MACHINE_LIMITS_H_\r
-#define _MACHINE_LIMITS_H_\r
-\r
-#define __CHAR_BIT 8 /* number of bits in a char */\r
-//#define MB_LEN_MAX 32 /* no multibyte characters */\r
-\r
-#define __SCHAR_MIN (-128) /* max value for a signed char */\r
-#define __SCHAR_MAX 127 /* min value for a signed char */\r
-\r
-#define __UCHAR_MAX 255 /* max value for an unsigned char */\r
-//#define CHAR_MAX 0x7f /* max value for a char */\r
-//#define CHAR_MIN (-0x7f-1) /* min value for a char */\r
-\r
-#define __USHRT_MAX 0xffffU /* max value for an unsigned short */\r
-#define __SHRT_MAX 0x7fff /* max value for a short */\r
-#define __SHRT_MIN (-0x7fff-1) /* min value for a short */\r
-\r
-#define __UINT_MAX 0xffffffffU /* max value for an unsigned int */\r
-#define __INT_MAX 0x7fffffff /* max value for an int */\r
-#define __INT_MIN (-0x7fffffff-1) /* min value for an int */\r
-\r
-//#define __ULONG_MAX 0xffffffffffffffffUL /* max value for an unsigned long */\r
-//#define __LONG_MAX 0x7fffffffffffffffL /* max value for a long */\r
-//#define __LONG_MIN (-0x7fffffffffffffffL-1) /* min value for a long */\r
-#define __ULONG_MAX __UINT_MAX /* max value for an unsigned long */\r
-#define __LONG_MAX __INT_MAX /* max value for a long */\r
-#define __LONG_MIN __INT_MIN /* min value for a long */\r
-\r
-\r
-#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */\r
-\r
-#define __ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */\r
-#define __LLONG_MAX 0x7fffffffffffffffLL /* max signed long long */\r
-#define __LLONG_MIN (-0x7fffffffffffffffLL-1) /* min signed long long */\r
-\r
-#define SIZE_T_MAX __ULLONG_MAX /* max value for a size_t */\r
-\r
-/* GCC requires that quad constants be written as expressions. */\r
-#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */\r
- /* max value for a quad_t */\r
-#define QUAD_MAX ((quad_t)(UQUAD_MAX >> 1))\r
-#define QUAD_MIN (-QUAD_MAX-1) /* min value for a quad_t */\r
-\r
-\r
-#define LONG_BIT 32\r
-#define WORD_BIT 32\r
-\r
-/* Intel extensions to <limits.h> for UEFI */\r
-#define __SHORT_BIT 16\r
-#define __WCHAR_BIT 16\r
-#define __INT_BIT 32\r
-#define __LONG_BIT 32 /* Compiler dependent */\r
-#define __LONG_LONG_BIT 64\r
-#define __POINTER_BIT 64\r
-\r
-#endif /* _MACHINE_LIMITS_H_ */\r
+++ /dev/null
-/* $NetBSD: loadfile_machdep.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1998 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Christos Zoulas and Ross Harvey.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#define BOOT_ELF64\r
-\r
-#define LOAD_KERNEL (LOAD_ALL & ~LOAD_TEXTA)\r
-#define COUNT_KERNEL (COUNT_ALL & ~COUNT_TEXTA)\r
-\r
-#ifndef MD_LOADSEG\r
-/* XXX: Multiple unwind sections are ignored, and the last one found returned... Fixme! */\r
-extern vaddr_t ia64_unwindtab;\r
-extern vsize_t ia64_unwindtablen;\r
-#define MD_LOADSEG(phdr) ((phdr)->p_type == PT_IA_64_UNWIND ? ia64_unwindtab = (phdr)->p_vaddr, ia64_unwindtablen = (phdr)->p_filesz, 1 : 0)\r
-#endif\r
-\r
-#ifdef _STANDALONE\r
-\r
-/* XXX: cherry: This whole thing is glue between the NetBSD pread/vpbcopy etc. etc\r
- * and the FreeBSD kern_pread/bzero etc. etc. Needs to be cleaned up \r
- * after discussion.\r
- */\r
-\r
-#include "bootstrap.h"\r
-\r
-#define LOADADDR(a) ((a) + offset)\r
-#define ALIGNENTRY(a) Error! alpha supports ECOFF and ELF only! /* Fixme: for ia64 */\r
-#define READ(f, b, c) pread((f), LOADADDR(b), (c))\r
-#define BCOPY(s, d, c) vpbcopy((s), LOADADDR(d), (c))\r
-#define BZERO(d, c) pbzero(LOADADDR(d), (c))\r
-#define WARN(a) (void)(printf a, \\r
- printf((errno ? ": %s\n" : "\n"), \\r
- strerror(errno)))\r
-#define PROGRESS(a) (void) printf a\r
-#define ALLOC(a) alloc(a)\r
-#define DEALLOC(a, b) dealloc(a, b)\r
-#define OKMAGIC(a) Error! ia64 supports ELF only!\r
-\r
-\r
-/* XXX: defines below glues NetBSD conventions with bootstrap.h. */\r
-\r
-#define vpbcopy archsw.arch_copyin\r
-#define pbzero kern_bzero\r
-#define pread archsw.arch_readin\r
-\r
-#else\r
-\r
-#define LOADADDR(a) (((u_long)(a)) + offset)\r
-#define ALIGNENTRY(a) ((u_long)(a))\r
-#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))\r
-#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))\r
-#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))\r
-#define WARN(a) warn a\r
-#define PROGRESS(a) /* nothing */\r
-#define ALLOC(a) malloc(a)\r
-#define DEALLOC(a, b) free(a)\r
-#define OKMAGIC(a) ((a) == OMAGIC)\r
-\r
-ssize_t vread(int, u_long, u_long *, size_t);\r
-void vcopy(u_long, u_long, u_long *, size_t);\r
-void vzero(u_long, u_long *, size_t);\r
-\r
-#endif\r
+++ /dev/null
-/* $NetBSD: math.h,v 1.3 2005/12/11 12:16:25 christos Exp $ */\r
-\r
-//#include <x86/math.h>\r
-\r
-//#define __HAVE_LONG_DOUBLE\r
-//#define __HAVE_NANF\r
+++ /dev/null
-/* $NetBSD: mca_machdep.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2002 Marcel Moolenaar\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- *\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_MCA_H_\r
-#define _MACHINE_MCA_H_\r
-\r
-struct mca_record_header {\r
- uint64_t rh_seqnr; /* Record id. */\r
- uint8_t rh_major; /* BCD (=02). */\r
- uint8_t rh_minor; /* BCD (=00). */\r
- uint8_t rh_error; /* Error severity. */\r
-#define MCA_RH_ERROR_RECOVERABLE 0\r
-#define MCA_RH_ERROR_FATAL 1\r
-#define MCA_RH_ERROR_CORRECTED 2\r
- uint8_t rh_flags;\r
-#define MCA_RH_FLAGS_PLATFORM_ID 0x01 /* Platform_id present. */\r
- uint32_t rh_length; /* Size including header. */\r
- uint8_t rh_time[8];\r
-#define MCA_RH_TIME_SEC 0\r
-#define MCA_RH_TIME_MIN 1\r
-#define MCA_RH_TIME_HOUR 2\r
-#define MCA_RH_TIME_MDAY 4\r
-#define MCA_RH_TIME_MON 5\r
-#define MCA_RH_TIME_YEAR 6\r
-#define MCA_RH_TIME_CENT 7\r
- struct uuid rh_platform;\r
-};\r
-\r
-struct mca_section_header {\r
- struct uuid sh_uuid;\r
- uint8_t sh_major; /* BCD (=02). */\r
- uint8_t sh_minor; /* BCD (=00). */\r
- uint8_t sh_flags;\r
-#define MCA_SH_FLAGS_CORRECTED 0x01 /* Error has been corrected. */\r
-#define MCA_SH_FLAGS_PROPAGATE 0x02 /* Possible propagation. */\r
-#define MCA_SH_FLAGS_RESET 0x04 /* Reset device before use. */\r
-#define MCA_SH_FLAGS_VALID 0x80 /* Flags are valid. */\r
- uint8_t __reserved;\r
- uint32_t sh_length; /* Size including header. */\r
-};\r
-\r
-struct mca_cpu_record {\r
- uint64_t cpu_flags;\r
-#define MCA_CPU_FLAGS_ERRMAP (1ULL << 0)\r
-#define MCA_CPU_FLAGS_STATE (1ULL << 1)\r
-#define MCA_CPU_FLAGS_CR_LID (1ULL << 2)\r
-#define MCA_CPU_FLAGS_PSI_STRUCT (1ULL << 3)\r
-#define MCA_CPU_FLAGS_CACHE(x) (((x) >> 4) & 15)\r
-#define MCA_CPU_FLAGS_TLB(x) (((x) >> 8) & 15)\r
-#define MCA_CPU_FLAGS_BUS(x) (((x) >> 12) & 15)\r
-#define MCA_CPU_FLAGS_REG(x) (((x) >> 16) & 15)\r
-#define MCA_CPU_FLAGS_MS(x) (((x) >> 20) & 15)\r
-#define MCA_CPU_FLAGS_CPUID (1ULL << 24)\r
- uint64_t cpu_errmap;\r
- uint64_t cpu_state;\r
- uint64_t cpu_cr_lid;\r
- /* Nx cpu_mod (cache). */\r
- /* Nx cpu_mod (TLB). */\r
- /* Nx cpu_mod (bus). */\r
- /* Nx cpu_mod (reg). */\r
- /* Nx cpu_mod (MS). */\r
- /* cpu_cpuid. */\r
- /* cpu_psi. */\r
-};\r
-\r
-struct mca_cpu_cpuid {\r
- uint64_t cpuid[6];\r
-};\r
-\r
-struct mca_cpu_mod {\r
- uint64_t cpu_mod_flags;\r
-#define MCA_CPU_MOD_FLAGS_INFO (1ULL << 0)\r
-#define MCA_CPU_MOD_FLAGS_REQID (1ULL << 1)\r
-#define MCA_CPU_MOD_FLAGS_RSPID (1ULL << 2)\r
-#define MCA_CPU_MOD_FLAGS_TGTID (1ULL << 3)\r
-#define MCA_CPU_MOD_FLAGS_IP (1ULL << 4)\r
- uint64_t cpu_mod_info;\r
- uint64_t cpu_mod_reqid;\r
- uint64_t cpu_mod_rspid;\r
- uint64_t cpu_mod_tgtid;\r
- uint64_t cpu_mod_ip;\r
-};\r
-\r
-struct mca_cpu_psi {\r
- uint64_t cpu_psi_flags;\r
-#define MCA_CPU_PSI_FLAGS_STATE (1ULL << 0)\r
-#define MCA_CPU_PSI_FLAGS_BR (1ULL << 1)\r
-#define MCA_CPU_PSI_FLAGS_CR (1ULL << 2)\r
-#define MCA_CPU_PSI_FLAGS_AR (1ULL << 3)\r
-#define MCA_CPU_PSI_FLAGS_RR (1ULL << 4)\r
-#define MCA_CPU_PSI_FLAGS_FR (1ULL << 5)\r
- uint8_t cpu_psi_state[1024]; /* XXX variable? */\r
- uint64_t cpu_psi_br[8];\r
- uint64_t cpu_psi_cr[128]; /* XXX variable? */\r
- uint64_t cpu_psi_ar[128]; /* XXX variable? */\r
- uint64_t cpu_psi_rr[8];\r
- uint64_t cpu_psi_fr[256]; /* 16 bytes per register! */\r
-};\r
-\r
-struct mca_mem_record {\r
- uint64_t mem_flags;\r
-#define MCA_MEM_FLAGS_STATUS (1ULL << 0)\r
-#define MCA_MEM_FLAGS_ADDR (1ULL << 1)\r
-#define MCA_MEM_FLAGS_ADDRMASK (1ULL << 2)\r
-#define MCA_MEM_FLAGS_NODE (1ULL << 3)\r
-#define MCA_MEM_FLAGS_CARD (1ULL << 4)\r
-#define MCA_MEM_FLAGS_MODULE (1ULL << 5)\r
-#define MCA_MEM_FLAGS_BANK (1ULL << 6)\r
-#define MCA_MEM_FLAGS_DEVICE (1ULL << 7)\r
-#define MCA_MEM_FLAGS_ROW (1ULL << 8)\r
-#define MCA_MEM_FLAGS_COLUMN (1ULL << 9)\r
-#define MCA_MEM_FLAGS_BITPOS (1ULL << 10)\r
-#define MCA_MEM_FLAGS_REQID (1ULL << 11)\r
-#define MCA_MEM_FLAGS_RSPID (1ULL << 12)\r
-#define MCA_MEM_FLAGS_TGTID (1ULL << 13)\r
-#define MCA_MEM_FLAGS_BUSDATA (1ULL << 14)\r
-#define MCA_MEM_FLAGS_OEM_ID (1ULL << 15)\r
-#define MCA_MEM_FLAGS_OEM_DATA (1ULL << 16)\r
- uint64_t mem_status;\r
- uint64_t mem_addr;\r
- uint64_t mem_addrmask;\r
- uint16_t mem_node;\r
- uint16_t mem_card;\r
- uint16_t mem_module;\r
- uint16_t mem_bank;\r
- uint16_t mem_device;\r
- uint16_t mem_row;\r
- uint16_t mem_column;\r
- uint16_t mem_bitpos;\r
- uint64_t mem_reqid;\r
- uint64_t mem_rspid;\r
- uint64_t mem_tgtid;\r
- uint64_t mem_busdata;\r
- struct uuid mem_oem_id;\r
- uint16_t mem_oem_length; /* Size of OEM data. */\r
- /* N bytes of OEM platform data. */\r
-};\r
-\r
-struct mca_pcibus_record {\r
- uint64_t pcibus_flags;\r
-#define MCA_PCIBUS_FLAGS_STATUS (1ULL << 0)\r
-#define MCA_PCIBUS_FLAGS_ERROR (1ULL << 1)\r
-#define MCA_PCIBUS_FLAGS_BUS (1ULL << 2)\r
-#define MCA_PCIBUS_FLAGS_ADDR (1ULL << 3)\r
-#define MCA_PCIBUS_FLAGS_DATA (1ULL << 4)\r
-#define MCA_PCIBUS_FLAGS_CMD (1ULL << 5)\r
-#define MCA_PCIBUS_FLAGS_REQID (1ULL << 6)\r
-#define MCA_PCIBUS_FLAGS_RSPID (1ULL << 7)\r
-#define MCA_PCIBUS_FLAGS_TGTID (1ULL << 8)\r
-#define MCA_PCIBUS_FLAGS_OEM_ID (1ULL << 9)\r
-#define MCA_PCIBUS_FLAGS_OEM_DATA (1ULL << 10)\r
- uint64_t pcibus_status;\r
- uint16_t pcibus_error;\r
- uint16_t pcibus_bus;\r
- uint32_t __reserved;\r
- uint64_t pcibus_addr;\r
- uint64_t pcibus_data;\r
- uint64_t pcibus_cmd;\r
- uint64_t pcibus_reqid;\r
- uint64_t pcibus_rspid;\r
- uint64_t pcibus_tgtid;\r
- struct uuid pcibus_oem_id;\r
- uint16_t pcibus_oem_length; /* Size of OEM data. */\r
- /* N bytes of OEM platform data. */\r
-};\r
-\r
-struct mca_pcidev_record {\r
- uint64_t pcidev_flags;\r
-#define MCA_PCIDEV_FLAGS_STATUS (1ULL << 0)\r
-#define MCA_PCIDEV_FLAGS_INFO (1ULL << 1)\r
-#define MCA_PCIDEV_FLAGS_REG_MEM (1ULL << 2)\r
-#define MCA_PCIDEV_FLAGS_REG_IO (1ULL << 3)\r
-#define MCA_PCIDEV_FLAGS_REG_DATA (1ULL << 4)\r
-#define MCA_PCIDEV_FLAGS_OEM_DATA (1ULL << 5)\r
- uint64_t pcidev_status;\r
- struct {\r
- uint16_t info_vendor;\r
- uint16_t info_device;\r
- uint32_t info_ccfn; /* Class code & funct. nr. */\r
-#define MCA_PCIDEV_INFO_CLASS(x) ((x) & 0xffffff)\r
-#define MCA_PCIDEV_INFO_FUNCTION(x) (((x) >> 24) & 0xff)\r
- uint8_t info_slot;\r
- uint8_t info_bus;\r
- uint8_t info_segment;\r
- uint8_t __res0;\r
- uint32_t __res1;\r
- } pcidev_info;\r
- uint32_t pcidev_reg_mem;\r
- uint32_t pcidev_reg_io;\r
- /* Nx pcidev_reg. */\r
- /* M bytes of OEM platform data. */\r
-};\r
-\r
-struct mca_pcidev_reg {\r
- uint64_t pcidev_reg_addr;\r
- uint64_t pcidev_reg_data;\r
-};\r
-\r
-#define MCA_UUID_CPU \\r
- {0xe429faf1,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define MCA_UUID_MEMORY \\r
- {0xe429faf2,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define MCA_UUID_SEL \\r
- {0xe429faf3,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define MCA_UUID_PCI_BUS \\r
- {0xe429faf4,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define MCA_UUID_SMBIOS \\r
- {0xe429faf5,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define MCA_UUID_PCI_DEV \\r
- {0xe429faf6,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-#define MCA_UUID_GENERIC \\r
- {0xe429faf7,0x3cb7,0x11d4,0xbc,0xa7,{0x00,0x80,0xc7,0x3c,0x88,0x81}}\r
-\r
-#ifdef _KERNEL\r
-\r
-void ia64_mca_init(void);\r
-void ia64_mca_save_state(int);\r
-\r
-#endif /* _KERNEL */\r
-\r
-#endif /* _MACHINE_MCA_H_ */\r
+++ /dev/null
-/* $NetBSD: md_var.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1998 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _IA64_MD_VAR_H_\r
-#define _IA64_MD_VAR_H_\r
-\r
-/*\r
- * Miscellaneous machine-dependent declarations.\r
- */\r
-\r
-struct ia64_fdesc {\r
- uint64_t func;\r
- uint64_t gp;\r
-};\r
-\r
-#define FDESC_FUNC(fn) (((struct ia64_fdesc *) fn)->func)\r
-#define FDESC_GP(fn) (((struct ia64_fdesc *) fn)->gp)\r
-\r
-/* Convenience macros to decompose CFM & ar.pfs. */\r
-#define IA64_CFM_SOF(x) ((x) & 0x7f)\r
-#define IA64_CFM_SOL(x) (((x) >> 7) & 0x7f)\r
-#define IA64_CFM_SOR(x) (((x) >> 14) & 0x0f)\r
-#define IA64_CFM_RRB_GR(x) (((x) >> 18) & 0x7f)\r
-#define IA64_CFM_RRB_FR(x) (((x) >> 25) & 0x7f)\r
-#define IA64_CFM_RRB_PR(x) (((x) >> 32) & 0x3f)\r
-\r
-#define IA64_RNATINDEX(x) (((x) & 0x1f8) >> 3)\r
-\r
-#ifdef _KERNEL\r
-\r
-extern char sigcode[];\r
-extern char esigcode[];\r
-extern int szsigcode;\r
-extern long Maxmem;\r
-extern vaddr_t kernstart, kernend;\r
-\r
-\r
-struct _special;\r
-struct fpreg;\r
-struct reg;\r
-struct thread;\r
-struct trapframe;\r
-\r
-void busdma_swi(void);\r
-int copyout_regstack(struct thread *, uint64_t *, uint64_t *);\r
-void cpu_mp_add(u_int, u_int, u_int);\r
-int do_ast(struct trapframe *);\r
-void ia32_trap(int, struct trapframe *);\r
-int ia64_count_cpus(void);\r
-void ia64_flush_dirty(struct thread *, struct _special *);\r
-uint64_t ia64_get_hcdp(void);\r
-int ia64_highfp_drop(struct thread *);\r
-int ia64_highfp_save(struct thread *);\r
-void ia64_init(void);\r
-void ia64_probe_sapics(void);\r
-int interrupt(uint64_t, struct trapframe *);\r
-void map_gateway_page(void);\r
-void map_pal_code(void);\r
-void os_boot_rendez(void);\r
-void os_mca(void);\r
-int syscall(struct trapframe *);\r
-void trap(int, struct trapframe *);\r
-void trap_panic(int, struct trapframe *);\r
-int unaligned_fixup(struct trapframe *, struct thread *);\r
-\r
-#endif /* _KERNEL */\r
-\r
-#endif /* !_IA64_MD_VAR_H_ */\r
+++ /dev/null
-/* $NetBSD: pal.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2000 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_PAL_H_\r
-#define _MACHINE_PAL_H_\r
-\r
-/*\r
- * Architected static calling convention procedures.\r
- */\r
-#define PAL_CACHE_FLUSH 1\r
-#define PAL_CACHE_INFO 2\r
-#define PAL_CACHE_INIT 3\r
-#define PAL_CACHE_SUMMARY 4\r
-#define PAL_MEM_ATTRIB 5\r
-#define PAL_PTCE_INFO 6\r
-#define PAL_VM_INFO 7\r
-#define PAL_VM_SUMMARY 8\r
-#define PAL_BUS_GET_FEATURES 9\r
-#define PAL_BUS_SET_FEATURES 10\r
-#define PAL_DEBUG_INFO 11\r
-#define PAL_FIXED_ADDR 12\r
-#define PAL_FREQ_BASE 13\r
-#define PAL_FREQ_RATIOS 14\r
-#define PAL_PERF_MON_INFO 15\r
-#define PAL_PLATFORM_ADDR 16\r
-#define PAL_PROC_GET_FEATURE 17\r
-#define PAL_PROC_SET_FEATURE 18\r
-#define PAL_RSE_INFO 19\r
-#define PAL_VERSION 20\r
-#define PAL_MC_CLEAR_LOG 21\r
-#define PAL_MC_DRAIN 22\r
-#define PAL_MC_DYNAMIC_STATE 24\r
-#define PAL_MC_ERROR_INFO 25\r
-#define PAL_MC_EXPECTED 23\r
-#define PAL_MC_REGISTER_MEM 27\r
-#define PAL_MC_RESUME 26\r
-#define PAL_HALT 28\r
-#define PAL_HALT_LIGHT 29\r
-#define PAL_COPY_INFO 30\r
-#define PAL_CACHE_LINE_INIT 31\r
-#define PAL_PMI_ENTRYPOINT 32\r
-#define PAL_ENTER_IA_32_ENV 33\r
-#define PAL_VM_PAGE_SIZE 34\r
-#define PAL_MEM_FOR_TEST 37\r
-#define PAL_CACHE_PROT_INFO 38\r
-#define PAL_REGISTER_INFO 39\r
-#define PAL_SHUTDOWN 40\r
-#define PAL_PREFETCH_VISIBILITY 41\r
-\r
-/*\r
- * Architected stacked calling convention procedures.\r
- */\r
-#define PAL_COPY_PAL 256\r
-#define PAL_HALT_INFO 257\r
-#define PAL_TEST_PROC 258\r
-#define PAL_CACHE_READ 259\r
-#define PAL_CACHE_WRITE 260\r
-#define PAL_VM_TR_READ 261\r
-\r
-/*\r
- * Default physical address of the Processor Interrupt Block (PIB).\r
- * See also: IA-64 SDM, rev 1.1, volume 2, page 5-31.\r
- */\r
-#define PAL_PIB_DEFAULT_ADDR 0x00000000FEE00000L\r
-\r
-struct ia64_pal_result {\r
- int64_t pal_status;\r
- u_int64_t pal_result[3];\r
-};\r
-\r
-extern struct ia64_pal_result\r
- ia64_call_pal_static(u_int64_t proc, u_int64_t arg1,\r
- u_int64_t arg2, u_int64_t arg3);\r
-extern struct ia64_pal_result\r
- ia64_call_pal_static_physical(u_int64_t proc, u_int64_t arg1,\r
- u_int64_t arg2, u_int64_t arg3);\r
-extern struct ia64_pal_result\r
- ia64_call_pal_stacked(u_int64_t proc, u_int64_t arg1,\r
- u_int64_t arg2, u_int64_t arg3);\r
-extern struct ia64_pal_result\r
- ia64_call_pal_stacked_physical(u_int64_t proc, u_int64_t arg1,\r
- u_int64_t arg2, u_int64_t arg3);\r
-\r
-#endif /* _MACHINE_PAL_H_ */\r
+++ /dev/null
-/** @file\r
- Machine dependent constants for Intel Itanium Architecture(IPF).\r
-\r
- Copyright (c) 2010-2012, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are licensed and made available under\r
- the terms and conditions of the BSD License that accompanies this distribution.\r
- The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- * Copyright (c) 1990 The Regents of the University of California.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to Berkeley by\r
- * William Jolitz.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)param.h 5.8 (Berkeley) 6/28/91\r
- * $NetBSD: param.h,v 1.2 2006/08/28 13:43:35 yamt Exp\r
- */\r
-#ifndef _IA64_PARAM_H_\r
-#define _IA64_PARAM_H_\r
-\r
-#define _MACHINE ia64\r
-#define MACHINE "ia64"\r
-#define _MACHINE_ARCH ia64\r
-#define MACHINE_ARCH "ia64"\r
-#define MID_MACHINE MID_IA64\r
-\r
-#ifdef SMP\r
-#define MAXCPU 512\r
-#else\r
-#define MAXCPU 1\r
-#endif\r
-\r
-#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */\r
-#define DEV_BSIZE (1<<DEV_BSHIFT)\r
-#define BLKDEV_IOSIZE 2048\r
-\r
-#ifndef MAXPHYS\r
-#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */\r
-#endif\r
-\r
-#define UPAGES 4\r
-#define USPACE (UPAGES * NBPG) /* total size of u-area */\r
-\r
-#ifndef MSGBUFSIZE\r
-#define MSGBUFSIZE NBPG /* default message buffer size */\r
-#endif\r
-\r
-#ifndef KSTACK_PAGES\r
-#define KSTACK_PAGES 4 /* pages of kernel stack */\r
-#endif\r
-#define KSTACK_GUARD_PAGES 0 /* pages of kstack guard; 0 disables */\r
-\r
-/*\r
- * Round p (pointer or byte index) up to a correctly-aligned value\r
- * for all data types (int, long, ...). The result is u_int and\r
- * must be cast to any desired pointer type.\r
- *\r
- * ALIGNED_POINTER is a boolean macro that checks whether an address\r
- * is valid to fetch data elements of type t from on this architecture.\r
- * This does not reflect the optimal alignment, just the possibility\r
- * (within reasonable limits).\r
- *\r
- */\r
-\r
-#define ALIGNBYTES 15\r
-#define ALIGN(p) (((UINT64)(p) + ALIGNBYTES) &~ ALIGNBYTES)\r
-#define ALIGNED_POINTER(p,t) ((((UINT64)(p)) & (sizeof(t)-1)) == 0)\r
-\r
-#define ALIGNBYTES32 (sizeof(INT32) - 1)\r
-#define ALIGN32(p) (((UINT64)(p) + ALIGNBYTES32) &~ALIGNBYTES32)\r
-\r
-#define PGSHIFT 14 /* LOG2(NBPG) */\r
-#define NBPG (1 << PGSHIFT) /* bytes/page */\r
-#define PGOFSET (NBPG-1) /* byte offset into page */\r
-#define NPTEPG (NBPG/(sizeof (pt_entry_t)))\r
-/*\r
- * Constants related to network buffer management.\r
- * MCLBYTES must be no larger than NBPG (the software page size), and,\r
- * on machines that exchange pages of input or output buffers with mbuf\r
- * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple\r
- * of the hardware page size.\r
- */\r
-#define MSIZE 256 /* size of an mbuf */\r
-\r
-#ifndef MCLSHIFT\r
- #define MCLSHIFT 11 /* convert bytes to m_buf clusters */\r
- /* 2K cluster can hold Ether frame */\r
-#endif /* MCLSHIFT */\r
-\r
-#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */\r
-\r
-#ifdef GATEWAY\r
- #define NMBCLUSTERS 2048 /* map size, max cluster allocation */\r
-#else\r
- #define NMBCLUSTERS 1024 /* map size, max cluster allocation */\r
-#endif\r
-\r
-/*\r
- * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized\r
- * logical pages.\r
- */\r
-#define NKMEMPAGES_MIN_DEFAULT ((12 * 1024 * 1024) >> PAGE_SHIFT)\r
-#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)\r
-\r
-/*\r
- * Mach derived conversion macros\r
- */\r
-\r
-#define ia64_round_page(x) ((((EFI_ULONG_T)(x)) + NBPG - 1) & ~(NBPG - 1))\r
-#define ia64_trunc_page(x) ((EFI_ULONG_T)(x) & ~(NBPG - 1))\r
-\r
-#define ia64_btop(x) ((EFI_ULONG_T)(x) >> PGSHIFT)\r
-#define ia64_ptob(x) ((EFI_ULONG_T)(x) << PGSHIFT)\r
-\r
-#endif /* _IA64_PARAM_H_ */\r
+++ /dev/null
-/* $NetBSD: pcb.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2003,2004 Marcel Moolenaar\r
- * Copyright (c) 2000 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD: src/sys/ia64/include/pcb.h,v 1.16 2004/08/16 19:05:08 marcel Exp $\r
- */\r
-\r
-#ifndef _IA64_PCB_H_\r
-#define _IA64_PCB_H_\r
-\r
-#include <machine/_regset.h>\r
-#include <sys/lock.h>\r
-\r
-/*\r
- * PCB: process control block\r
- */\r
-struct pmap;\r
-struct pcb {\r
- struct _special pcb_special;\r
- struct _callee_saved pcb_preserved;\r
- struct _callee_saved_fp pcb_preserved_fp;\r
- struct _high_fp pcb_high_fp;\r
- struct pcpu *pcb_fpcpu;\r
- struct simplelock pcb_fpcpu_slock;\r
-\r
-\r
- /* IA32 specific registers. */\r
- uint64_t pcb_ia32_cflg;\r
- uint64_t pcb_ia32_eflag;\r
- uint64_t pcb_ia32_fcr;\r
- uint64_t pcb_ia32_fdr;\r
- uint64_t pcb_ia32_fir;\r
- uint64_t pcb_ia32_fsr;\r
-\r
- uint64_t pcb_onfault; /* for copy faults */\r
- // struct pmap *pcb_current_pmap;\r
-};\r
-\r
-#ifdef _KERNEL\r
-\r
-#define savectx(p) swapctx(p, NULL)\r
-\r
-struct trapframe;\r
-\r
-void makectx(struct trapframe *, struct pcb *);\r
-/*void restorectx(struct pcb *) __dead2;*/\r
-int swapctx(struct pcb *old, struct pcb *new);\r
-\r
-void ia32_restorectx(struct pcb *);\r
-void ia32_savectx(struct pcb *);\r
-\r
-#endif\r
-\r
-#endif /* _IA64_PCB_H_ */\r
+++ /dev/null
-/*-\r
- * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,\r
- * NASA Ames Research Center and by Chris G. Demetriou.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-/*-\r
- * Copyright (c) 1991 Regents of the University of California.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to Berkeley by\r
- * the Systems Programming Group of the University of Utah Computer\r
- * Science Department and William Jolitz of UUNET Technologies Inc.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 4. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * Derived from hp300 version by Mike Hibler, this version by William\r
- * Jolitz uses a recursive map [a pde points to the page directory] to\r
- * map the page tables using the pagetables themselves. This is done to\r
- * reduce the impact on kernel virtual memory for lots of sparse address\r
- * space, and to reduce the cost of memory to each process.\r
- *\r
- * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90\r
- * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91\r
- * from: i386 pmap.h,v 1.54 1997/11/20 19:30:35 bde Exp\r
- * $FreeBSD: src/sys/ia64/include/pmap.h,v 1.25 2005/09/03 23:53:50 marcel Exp $\r
- */\r
-\r
-#ifndef _PMAP_MACHINE_\r
-#define _PMAP_MACHINE_\r
-\r
-#include <sys/lock.h>\r
-\r
-paddr_t vtophys(vaddr_t);\r
-\r
-struct pv_entry; /* Forward declaration. */\r
-\r
-struct pmap {\r
- TAILQ_ENTRY(pmap) pm_list; /* list of all pmaps */\r
- TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */\r
- int pm_count; /* pmap reference count */\r
- struct simplelock pm_slock; /* lock on pmap */\r
- u_int32_t pm_rid[5]; /* base RID for pmap */\r
- int pm_active; /* active flag */\r
- struct pmap_statistics pm_stats; /* pmap statistics */\r
- unsigned long pm_cpus; /* mask of CPUs using pmap */\r
-\r
-};\r
-\r
-typedef struct pmap *pmap_t;\r
-\r
-/*\r
- * For each vm_page_t, there is a list of all currently valid virtual\r
- * mappings of that page. An entry is a pv_entry_t, the list is pv_pvlist.\r
- */\r
-typedef struct pv_entry {\r
- pmap_t pv_pmap; /* pmap where mapping lies */\r
- vaddr_t pv_va; /* virtual address for mapping */\r
- TAILQ_ENTRY(pv_entry) pv_list;\r
- TAILQ_ENTRY(pv_entry) pv_plist;\r
-} *pv_entry_t;\r
-\r
-/* pvh_attrs */\r
-#define PGA_MODIFIED 0x01 /* modified */\r
-#define PGA_REFERENCED 0x02 /* referenced */\r
-\r
-\r
-extern struct pmap kernel_pmap_store;\r
-\r
-#define pmap_kernel() (&kernel_pmap_store)\r
-\r
-#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)\r
-#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)\r
-\r
-#define pmap_copy(dp, sp, da, l, sa) /* nothing */\r
-#define pmap_update(pmap) /* nothing (yet) */\r
-\r
-void pmap_bootstrap(void);\r
-\r
-#define pmap_is_referenced(pg) \\r
- (((pg)->mdpage.pvh_attrs & PGA_REFERENCED) != 0)\r
-#define pmap_is_modified(pg) \\r
- (((pg)->mdpage.pvh_attrs & PGA_MODIFIED) != 0)\r
-\r
-\r
-#define PMAP_STEAL_MEMORY /* enable pmap_steal_memory() */\r
-\r
-/*\r
- * Alternate mapping hooks for pool pages. Avoids thrashing the TLB.\r
- */\r
-#define PMAP_MAP_POOLPAGE(pa) IA64_PHYS_TO_RR7((pa))\r
-#define PMAP_UNMAP_POOLPAGE(va) IA64_RR_MASK((va))\r
-\r
-/*\r
- * Macros for locking pmap structures.\r
- *\r
- * Note that we if we access the kernel pmap in interrupt context, it\r
- * is only to update statistics. Since stats are updated using atomic\r
- * operations, locking the kernel pmap is not necessary. Therefore,\r
- * it is not necessary to block interrupts when locking pmap strucutres.\r
- */\r
-#define PMAP_LOCK(pmap) simple_lock(&(pmap)->pm_slock)\r
-#define PMAP_UNLOCK(pmap) simple_unlock(&(pmap)->pm_slock)\r
-\r
-\r
-#define PMAP_VHPT_LOG2SIZE 16 \r
-\r
-\r
-#endif /* _PMAP_MACHINE_ */\r
+++ /dev/null
-/* $NetBSD: pte.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2001 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_PTE_H_\r
-#define _MACHINE_PTE_H_\r
-\r
-#define PTE_PRESENT 0x0000000000000001\r
-#define PTE__RV1_ 0x0000000000000002\r
-#define PTE_MA_MASK 0x000000000000001C\r
-#define PTE_MA_WB 0x0000000000000000\r
-#define PTE_MA_UC 0x0000000000000010\r
-#define PTE_MA_UCE 0x0000000000000014\r
-#define PTE_MA_WC 0x0000000000000018\r
-#define PTE_MA_NATPAGE 0x000000000000001C\r
-#define PTE_ACCESSED 0x0000000000000020\r
-#define PTE_DIRTY 0x0000000000000040\r
-#define PTE_PL_MASK 0x0000000000000180\r
-#define PTE_PL_KERN 0x0000000000000000\r
-#define PTE_PL_USER 0x0000000000000180\r
-#define PTE_AR_MASK 0x0000000000000E00\r
-\r
-#define PTE_AR_R 0x0000000000000000\r
-#define PTE_AR_RX 0x0000000000000200\r
-#define PTE_AR_RW 0x0000000000000400\r
-#define PTE_AR_RWX 0x0000000000000600\r
-#define PTE_AR_R_RW 0x0000000000000800\r
-#define PTE_AR_RX_RWX 0x0000000000000A00\r
-#define PTE_AR_RWX_RW 0x0000000000000C00\r
-#define PTE_AR_X_RX 0x0000000000000E00\r
-#define PTE_PPN_MASK 0x0003FFFFFFFFF000\r
-#define PTE__RV2_ 0x000C000000000000\r
-#define PTE_ED 0x0010000000000000\r
-#define PTE_IG_MASK 0xFFE0000000000000\r
-#define PTE_WIRED 0x0020000000000000\r
-#define PTE_MANAGED 0x0040000000000000\r
-#define PTE_PROT_MASK 0x0700000000000000\r
-\r
-#define ITIR__RV1_ 0x0000000000000003\r
-#define ITIR_PS_MASK 0x00000000000000FC\r
-#define ITIR_KEY_MASK 0x00000000FFFFFF00\r
-#define ITIR__RV2_ 0xFFFFFFFF00000000\r
-\r
-#ifndef _LOCORE\r
-\r
-typedef uint64_t pt_entry_t;\r
-\r
-static __inline pt_entry_t\r
-pte_atomic_clear(pt_entry_t *ptep, uint64_t val)\r
-{\r
- return (atomic_clear_64(ptep, val));\r
-}\r
-\r
-static __inline pt_entry_t\r
-pte_atomic_set(pt_entry_t *ptep, uint64_t val)\r
-{\r
- return (atomic_set_64(ptep, val));\r
-}\r
-\r
-/*\r
- * A long-format VHPT entry.\r
- */\r
-struct ia64_lpte {\r
- pt_entry_t pte;\r
- uint64_t itir;\r
- uint64_t tag; /* includes ti */\r
- uint64_t chain; /* pa of collision chain */\r
-};\r
-\r
-\r
-/*\r
- * Layout of rr[x].\r
- */\r
-struct ia64_rr {\r
- uint64_t rr_ve :1; /* bit 0 */\r
- uint64_t __rv1__ :1; /* bit 1 */\r
- uint64_t rr_ps :6; /* bits 2..7 */\r
- uint64_t rr_rid :24; /* bits 8..31 */\r
- uint64_t __rv2__ :32; /* bits 32..63 */\r
-};\r
-\r
-#endif /* !LOCORE */\r
-\r
-#endif /* !_MACHINE_PTE_H_ */\r
+++ /dev/null
-/* $NetBSD: ptrace.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*\r
- * Copyright (c) 1994 Christopher G. Demetriou\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by Christopher G. Demetriou.\r
- * 4. The name of the author may not be used to endorse or promote products\r
- * derived from this software without specific prior written permission\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-/*\r
- * IA64 dependent ptrace definitions.\r
- */\r
-#define PT_STEP (PT_FIRSTMACH + 0)\r
-#define PT_GETREGS (PT_FIRSTMACH + 1)\r
-#define PT_SETREGS (PT_FIRSTMACH + 2)\r
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)\r
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)\r
+++ /dev/null
-/* $NetBSD: reg.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2000 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _IA64_REG_H_\r
-#define _IA64_REG_H_\r
-\r
-#include <machine/_regset.h>\r
-\r
-struct reg {\r
- struct _special r_special;\r
- struct _callee_saved r_preserved;\r
- struct _caller_saved r_scratch;\r
-};\r
-\r
-struct fpreg {\r
- struct _callee_saved_fp fpr_preserved;\r
- struct _caller_saved_fp fpr_scratch;\r
- struct _high_fp fpr_high;\r
-};\r
-\r
-struct dbreg {\r
- unsigned long dbr_data[8];\r
- unsigned long dbr_inst[8];\r
-};\r
-\r
-#endif /* _IA64_REG_H_ */\r
+++ /dev/null
-/* $NetBSD: sal.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2001 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_SAL_H_\r
-#define _MACHINE_SAL_H_\r
-\r
-struct sal_system_table {\r
- char sal_signature[4];\r
-#define SAL_SIGNATURE "SST_"\r
- u_int32_t sal_length;\r
- u_int8_t sal_rev[2];\r
- u_int16_t sal_entry_count;\r
- u_int8_t sal_checksum;\r
- u_int8_t sal_reserved1[7];\r
- u_int8_t sal_a_version[2];\r
- u_int8_t sal_b_version[2];\r
- char sal_oem_id[32];\r
- char sal_product_id[32];\r
- u_int8_t sal_reserved2[8];\r
-};\r
-\r
-struct sal_entrypoint_descriptor {\r
- u_int8_t sale_type; /* == 0 */\r
- u_int8_t sale_reserved1[7];\r
- u_int64_t sale_pal_proc;\r
- u_int64_t sale_sal_proc;\r
- u_int64_t sale_sal_gp;\r
- u_int8_t sale_reserved2[16];\r
-};\r
-\r
-struct sal_memory_descriptor {\r
- u_int8_t sale_type; /* == 1 */\r
- u_int8_t sale_need_virtual;\r
- u_int8_t sale_current_attribute;\r
- u_int8_t sale_access_rights;\r
- u_int8_t sale_supported_attributes;\r
- u_int8_t sale_reserved1;\r
- u_int8_t sale_memory_type[2];\r
- u_int64_t sale_physical_address;\r
- u_int32_t sale_length;\r
- u_int8_t sale_reserved2[12];\r
-};\r
-\r
-struct sal_platform_descriptor {\r
- u_int8_t sale_type; /* == 2 */\r
- u_int8_t sale_features;\r
- u_int8_t sale_reserved[14];\r
-};\r
-\r
-struct sal_tr_descriptor {\r
- u_int8_t sale_type; /* == 3 */\r
- u_int8_t sale_register_type;\r
- u_int8_t sale_register_number;\r
- u_int8_t sale_reserved1[5];\r
- u_int64_t sale_virtual_address;\r
- u_int64_t sale_page_size;\r
- u_int8_t sale_reserved2[8];\r
-};\r
-\r
-struct sal_ptc_cache_descriptor {\r
- u_int8_t sale_type; /* == 4 */\r
- u_int8_t sale_reserved[3];\r
- u_int32_t sale_domains;\r
- u_int64_t sale_address;\r
-};\r
-\r
-struct sal_ap_wakeup_descriptor {\r
- u_int8_t sale_type; /* == 5 */\r
- u_int8_t sale_mechanism;\r
- u_int8_t sale_reserved[6];\r
- u_int64_t sale_vector;\r
-};\r
-\r
-/*\r
- * SAL Procedure numbers.\r
- */\r
-\r
-#define SAL_SET_VECTORS 0x01000000\r
-#define SAL_GET_STATE_INFO 0x01000001\r
-#define SAL_GET_STATE_INFO_SIZE 0x01000002\r
-#define SAL_CLEAR_STATE_INFO 0x01000003\r
-#define SAL_MC_RENDEZ 0x01000004\r
-#define SAL_MC_SET_PARAMS 0x01000005\r
-#define SAL_REGISTER_PHYSICAL_ADDR 0x01000006\r
-#define SAL_CACHE_FLUSH 0x01000008\r
-#define SAL_CACHE_INIT 0x01000009\r
-#define SAL_PCI_CONFIG_READ 0x01000010\r
-#define SAL_PCI_CONFIG_WRITE 0x01000011\r
-#define SAL_FREQ_BASE 0x01000012\r
-#define SAL_UPDATE_PAL 0x01000020\r
-\r
-/* SAL_SET_VECTORS event handler types */\r
-#define SAL_OS_MCA 0\r
-#define SAL_OS_INIT 1\r
-#define SAL_OS_BOOT_RENDEZ 2\r
-\r
-/* SAL_GET_STATE_INFO, SAL_GET_STATE_INFO_SIZE types */\r
-#define SAL_INFO_MCA 0\r
-#define SAL_INFO_INIT 1\r
-#define SAL_INFO_CMC 2\r
-#define SAL_INFO_CPE 3\r
-#define SAL_INFO_TYPES 4 /* number of types we know about */\r
-\r
-struct ia64_sal_result {\r
- int64_t sal_status;\r
- u_int64_t sal_result[3];\r
-};\r
-\r
-typedef struct ia64_sal_result sal_entry_t\r
- (u_int64_t, u_int64_t, u_int64_t, u_int64_t,\r
- u_int64_t, u_int64_t, u_int64_t, u_int64_t);\r
-\r
-extern sal_entry_t *ia64_sal_entry;\r
-\r
-extern void ia64_sal_init(void);\r
-\r
-#endif /* _MACHINE_SAL_H_ */\r
+++ /dev/null
-/* $NetBSD: setjmp.h,v 1.2 2006/09/10 21:16:56 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2000\r
- * Intel Corporation.\r
- * All rights reserved.\r
- * \r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * \r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * \r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * \r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * \r
- * This product includes software developed by Intel Corporation and\r
- * its contributors.\r
- * \r
- * 4. Neither the name of Intel Corporation or its contributors may be\r
- * used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- * \r
- * THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION AND CONTRIBUTORS ``AS IS''\r
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION OR CONTRIBUTORS BE\r
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\r
- * THE POSSIBILITY OF SUCH DAMAGE.\r
- * \r
- * $FreeBSD: src/sys/ia64/include/setjmp.h,v 1.12 2003/07/26 08:03:43 marcel Exp $\r
- */\r
-\r
-#ifndef _MACHINE_SETJMP_H_\r
-#define _MACHINE_SETJMP_H_\r
-\r
-#include <sys/cdefs.h>\r
-\r
-#define JMPBUF_ADDR_OF(buf, item) ((unsigned long)((char *)buf + item))\r
-\r
-#define J_UNAT 0\r
-#define J_NATS 0x8\r
-#define J_PFS 0x10\r
-#define J_BSP 0x18\r
-#define J_RNAT 0x20\r
-#define J_PREDS 0x28\r
-#define J_LC 0x30\r
-#define J_R4 0x38\r
-#define J_R5 0x40\r
-#define J_R6 0x48\r
-#define J_R7 0x50\r
-#define J_SP 0x58\r
-#define J_F2 0x60\r
-#define J_F3 0x70\r
-#define J_F4 0x80\r
-#define J_F5 0x90\r
-#define J_F16 0xa0\r
-#define J_F17 0xb0\r
-#define J_F18 0xc0\r
-#define J_F19 0xd0\r
-#define J_F20 0xe0\r
-#define J_F21 0xf0\r
-#define J_F22 0x100\r
-#define J_F23 0x110\r
-#define J_F24 0x120\r
-#define J_F25 0x130\r
-#define J_F26 0x140\r
-#define J_F27 0x150\r
-#define J_F28 0x160\r
-#define J_F29 0x170\r
-#define J_F30 0x180\r
-#define J_F31 0x190\r
-#define J_FPSR 0x1a0\r
-#define J_B0 0x1a8\r
-#define J_B1 0x1b0\r
-#define J_B2 0x1b8\r
-#define J_B3 0x1c0\r
-#define J_B4 0x1c8\r
-#define J_B5 0x1d0\r
-#define J_SIGMASK 0x1d8\r
-#define J_SIGSET 0x1e0\r
-\r
-#define _JBLEN 0x200 /* Size in long XXX: Set to sizeof(mcontext_t)/sizeof(long) */\r
-\r
-#ifdef _KERNEL\r
-#ifdef CTASSERT\r
-CTASSERT(sizeof(struct _jmp_buf) == 512);\r
-#endif\r
-#endif\r
-\r
-#endif /* !_MACHINE_SETJMP_H_ */\r
+++ /dev/null
-/**\r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under\r
-the terms and conditions of the BSD License that accompanies this distribution.\r
-The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-#ifndef _MACHINE_SIGNAL_H\r
-#define _MACHINE_SIGNAL_H\r
-#include <sys/EfiCdefs.h>\r
-\r
-/** The type sig_atomic_t is the (possibly volatile-qualified) integer type of\r
- an object that can be accessed as an atomic entity, even in the presence\r
- of asynchronous interrupts.\r
-**/\r
-typedef INTN sig_atomic_t;\r
-\r
-#endif /* _MACHINE_SIGNAL_H */\r
+++ /dev/null
-/*\r
- * $FreeBSD: src/sys/ia64/include/smp.h,v 1.10 2005/08/06 20:28:19 marcel Exp $\r
- */\r
-#ifndef _MACHINE_SMP_H_\r
-#define _MACHINE_SMP_H_\r
-\r
-#ifdef _KERNEL\r
-\r
-/*\r
- * Interprocessor interrupts for SMP. The following values are indices\r
- * into the IPI vector table. The SAL gives us the vector used for AP\r
- * wake-up. We base the other vectors on that. Keep IPI_AP_WAKEUP at\r
- * index 0 and IPI_MCA_RENDEZ at index 1. See sal.c for details.\r
- */\r
-/* Architecture specific IPIs. */\r
-#define IPI_AP_WAKEUP 0\r
-#define IPI_HIGH_FP 1\r
-#define IPI_MCA_CMCV 2\r
-#define IPI_MCA_RENDEZ 3\r
-#define IPI_TEST 4\r
-/* Machine independent IPIs. */\r
-#define IPI_AST 5\r
-#define IPI_RENDEZVOUS 6\r
-#define IPI_STOP 7\r
-\r
-#define IPI_COUNT 8\r
-\r
-#ifndef LOCORE\r
-\r
-extern int ipi_vector[];\r
-\r
-void ipi_all(int ipi);\r
-void ipi_all_but_self(int ipi);\r
-void ipi_selected(u_int64_t cpus, int ipi);\r
-void ipi_self(int ipi);\r
-void ipi_send(u_int64_t lid, int ipi);\r
-\r
-#endif /* !LOCORE */\r
-#endif /* _KERNEL */\r
-#endif /* !_MACHINE_SMP_H */\r
+++ /dev/null
-/* $NetBSD: ssc.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-#define SSC_CONSOLE_INIT 20\r
-#define SSC_GETCHAR 21\r
-#define SSC_PUTCHAR 31\r
-#define SSC_OPEN 50\r
-#define SSC_CLOSE 51\r
-#define SSC_READ 52\r
-#define SSC_WRITE 53\r
-#define SSC_GET_COMPLETION 54\r
-#define SSC_WAIT_COMPLETION 55\r
-#define SSC_GET_RTC 65\r
-#define SSC_EXIT 66\r
-#define SSC_LOAD_SYMBOLS 69\r
-#define SSC_SAL_SET_VECTORS 120\r
-\r
-u_int64_t\r
-ssc(u_int64_t in0, u_int64_t in1, u_int64_t in2, u_int64_t in3, int which);\r
+++ /dev/null
-/* $NetBSD: stdarg.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1991, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)stdarg.h 8.1 (Berkeley) 6/10/93\r
- */\r
-\r
-#ifndef _IA64_STDARG_H_\r
-#define _IA64_STDARG_H_\r
-\r
-#include <machine/ansi.h>\r
-#include <sys/featuretest.h>\r
-\r
-typedef _BSD_VA_LIST_ va_list;\r
-\r
-#ifdef __lint__\r
-#define __builtin_next_arg(t) ((t) ? 0 : 0)\r
-#define __builtin_stdarg_start(a, l) ((a) = (va_list)(void *)&(l))\r
-#define __builtin_va_arg(a, t) ((a) ? (t) 0 : (t) 0)\r
-#define __builtin_va_end(a) /* nothing */\r
-#define __builtin_va_copy(d, s) ((d) = (s))\r
-#endif\r
-\r
-#define va_start(ap, last) __builtin_stdarg_start((ap), (last))\r
-#define va_arg __builtin_va_arg\r
-#define va_end(ap) __builtin_va_end(ap)\r
-#define __va_copy(dest, src) __builtin_va_copy((dest), (src))\r
-\r
-#if !defined(_ANSI_SOURCE) && \\r
- (defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \\r
- defined(_NETBSD_SOURCE))\r
-#define va_copy(dest, src) __va_copy((dest), (src))\r
-#endif\r
-\r
-#endif /* !_IA64_STDARG_H_ */\r
+++ /dev/null
-/* $NetBSD: types.h,v 1.2 2006/09/10 21:30:14 gdamore Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1990 The Regents of the University of California.\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)types.h 7.5 (Berkeley) 3/9/91\r
- */\r
-\r
-#ifndef _MACHTYPES_H_\r
-#define _MACHTYPES_H_\r
-#include <sys/EfiCdefs.h>\r
-#include <sys/featuretest.h>\r
-#include <machine/int_types.h>\r
-\r
-/* Handle the long and unsigned long data types which EFI doesn't directly support */\r
-//typedef INTN LONGN;\r
-//typedef UINTN ULONGN;\r
-\r
-typedef PHYSICAL_ADDRESS paddr_t;\r
-typedef UINT64 psize_t;\r
-typedef PHYSICAL_ADDRESS vaddr_t;\r
-typedef UINT64 vsize_t;\r
-\r
-typedef INTN pmc_evid_t;\r
-typedef UINT64 pmc_ctr_t;\r
-typedef INTN register_t;\r
-\r
-typedef __volatile INT32 __cpu_simple_lock_t;\r
-\r
-#define __SIMPLELOCK_LOCKED 1\r
-#define __SIMPLELOCK_UNLOCKED 0\r
-\r
-#define __HAVE_CPU_COUNTER\r
-#define __HAVE_SYSCALL_INTERN\r
-#define __HAVE_MINIMAL_EMUL\r
-#define __HAVE_OLD_DISKLABEL\r
-/* XXX: #define __HAVE_CPU_MAXPROC */\r
-\r
-#endif /* _MACHTYPES_H_ */\r
+++ /dev/null
-/* $NetBSD: varargs.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1990, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- * (c) UNIX System Laboratories, Inc.\r
- * All or some portions of this file are derived from material licensed\r
- * to the University of California by American Telephone and Telegraph\r
- * Co. or Unix System Laboratories, Inc. and are reproduced herein with\r
- * the permission of UNIX System Laboratories, Inc.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)varargs.h 8.2 (Berkeley) 3/22/94\r
- */\r
-\r
-#ifndef _IA64_VARARGS_H_\r
-#define _IA64_VARARGS_H_\r
-\r
-#include <machine/stdarg.h>\r
-\r
-#define __va_ellipsis ...\r
-#define __va_alist_t __builtin_va_alist_t\r
-#define va_alist __builtin_va_alist\r
-#define va_dcl __va_alist_t __builtin_va_alist; __va_ellipsis\r
-\r
-#undef va_start\r
-#define va_start(ap) __builtin_varargs_start((ap))\r
-\r
-#endif /* !_IA64_VARARGS_H_ */\r
+++ /dev/null
-/* $NetBSD: vmparam.h,v 1.2 2006/07/03 17:01:45 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1990 The Regents of the University of California.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to Berkeley by\r
- * William Jolitz.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)vmparam.h 5.9 (Berkeley) 5/12/91\r
- */\r
-\r
-#ifndef _VMPARAM_H_\r
-#define _VMPARAM_H_\r
-\r
-#include <sys/tree.h>\r
-\r
-#define USRSTACK VM_MAX_ADDRESS /* XXX: Revisit vm address space. */\r
-\r
-/*\r
- * Virtual memory related constants, all in bytes\r
- */\r
-#ifndef MAXTSIZ\r
-#define MAXTSIZ (1<<30) /* max text size (1G) */\r
-#endif\r
-#ifndef DFLDSIZ\r
-#define DFLDSIZ (1<<27) /* initial data size (128M) */\r
-#endif\r
-#ifndef MAXDSIZ\r
-#define MAXDSIZ (1<<30) /* max data size (1G) */\r
-#endif\r
-#ifndef DFLSSIZ\r
-#define DFLSSIZ (1<<21) /* initial stack size (2M) */\r
-#endif\r
-#ifndef MAXSSIZ\r
-#define MAXSSIZ (1<<28) /* max stack size (256M) */\r
-#endif\r
-#ifndef SGROWSIZ\r
-#define SGROWSIZ (128UL*1024) /* amount to grow stack */\r
-#endif\r
-\r
-\r
-\r
-/*\r
- * PTEs for mapping user space into the kernel for phyio operations.\r
- * 64 pte's are enough to cover 8 disks * MAXBSIZE.\r
- */\r
-#ifndef USRIOSIZE\r
-#define USRIOSIZE 64\r
-#endif\r
-\r
-/*\r
- * Manipulating region bits of an address.\r
- */\r
-#define IA64_RR_BASE(n) (((u_int64_t) (n)) << 61)\r
-#define IA64_RR_MASK(x) ((x) & ((1L << 61) - 1))\r
-\r
-#define IA64_PHYS_TO_RR6(x) ((x) | IA64_RR_BASE(6))\r
-#define IA64_PHYS_TO_RR7(x) ((x) | IA64_RR_BASE(7))\r
-\r
-#define IA64_ID_PAGE_SHIFT 28 /* 256M */\r
-#define IA64_ID_PAGE_SIZE (1 << IA64_ID_PAGE_SHIFT)\r
-#define IA64_ID_PAGE_MASK (IA64_ID_PAGE_SIZE-1)\r
-\r
-#define IA64_BACKINGSTORE IA64_RR_BASE(4)\r
-\r
-#define PAGE_SHIFT 14 /* 16K pages by default. */\r
-#define PAGE_SIZE (1 << PAGE_SHIFT)\r
-#define PAGE_MASK (PAGE_SIZE - 1)\r
-\r
-/* user/kernel map constants */\r
-#define VM_MIN_ADDRESS ((vaddr_t)0)\r
-#define VM_MAX_ADDRESS ((vaddr_t) IA64_RR_BASE(5))\r
-#define VM_GATEWAY_SIZE PAGE_SIZE\r
-#define VM_MAXUSER_ADDRESS (VM_MAX_ADDRESS + VM_GATEWAY_SIZE)\r
-#define VM_MIN_KERNEL_ADDRESS VM_MAXUSER_ADDRESS\r
-#define VM_MAX_KERNEL_ADDRESS ((vaddr_t) (IA64_RR_BASE(6) - 1))\r
-\r
-#define VM_PHYSSEG_MAX 16 /* XXX: */\r
-#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH\r
-#define VM_PHYSSEG_NOADD /* no more after vm_mem_init */\r
-\r
-#define VM_NFREELIST 1 /* XXX: */\r
-#define VM_FREELIST_DEFAULT 0 /* XXX: */\r
-\r
-/* virtual sizes (bytes) for various kernel submaps */\r
-#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)\r
-\r
-#ifndef _LOCORE\r
-/*\r
- * pmap-specific data store in the vm_page structure.\r
- */\r
-#define __HAVE_VM_PAGE_MD\r
-struct vm_page_md {\r
- TAILQ_HEAD(,pv_entry) pv_list; /* pv_entry list */\r
- int pv_list_count;\r
- struct simplelock pv_slock; /* lock on this head */\r
- int pvh_attrs; /* page attributes */\r
-};\r
-\r
-#define VM_MDPAGE_INIT(pg) \\r
-do { \\r
- TAILQ_INIT(&(pg)->mdpage.pv_list); \\r
- simple_lock_init(&(pg)->mdpage.pv_slock); \\r
-} while (/*CONSTCOND*/0)\r
-#endif /*_LOCORE*/\r
-\r
-#endif /* _VMPARAM_H_ */\r
+++ /dev/null
-/* $NetBSD: wchar_limits.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2004 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by Klaus Klein.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the NetBSD\r
- * Foundation, Inc. and its contributors.\r
- * 4. Neither the name of The NetBSD Foundation nor the names of its\r
- * contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-#ifndef _IA64_WCHAR_LIMITS_H_\r
-#define _IA64_WCHAR_LIMITS_H_\r
-\r
-#endif /* !_IA64_WCHAR_LIMITS_H_ */\r
# by the <ctype.h> header of the C Standard Library, ISO/IEC 9899:1990 with\r
# Amendment 1 (C95).\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available\r
# under the terms and conditions of the BSD License which accompanies this\r
# distribution. The full text of the license may be found at\r
#\r
# The following information is for reference only and not required by the build tools.\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Miscelaneous implementations.\r
#\r
-# Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibC\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
Main/X64/isinfl.c\r
Main/X64/isnanl.c\r
\r
-[Sources.IPF]\r
- Main/x86flt_rounds.c\r
- Main/Ipf/FpuRmode.s\r
-\r
[Sources.ARM]\r
Main/Arm/fixunsdfsi.c\r
Main/Arm/floatunsidf.c\r
## @file\r
# Standard C library: Locale implementation.\r
#\r
-# Copyright (c) 2010-2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibLocale\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
+++ /dev/null
- .globl internal_FPU_rmode\r
- .proc internal_FPU_rmode\r
-internal_FPU_rmode::\r
- // get the floating point rounding control bits\r
- // bits 10 and 11 are the rc bits from main status field fpsr.sf0\r
- mov r8= ar.fpsr;;\r
- shr r8 = r8, 10\r
- mov r9 = 3;;\r
- and r8 = r8, r9;;\r
- br.sptk.few b0\r
-\r
- .endp internal_FPU_rmode\r
+++ /dev/null
-/*\r
- * Written by J.T. Conklin, Apr 10, 1995\r
- * Public domain.\r
- */\r
-\r
-#include <sys/EfiCdefs.h>\r
-/* __FBSDID("$FreeBSD: src/lib/libc/ia64/gen/flt_rounds.c,v 1.1 2004/07/19 08:17:24 das Exp $"); */\r
-\r
-#include <float.h>\r
-\r
-static const int map[] = {\r
- 1, /* round to nearest */\r
- 3, /* round to zero */\r
- 2, /* round to negative infinity */\r
- 0 /* round to positive infinity */\r
-};\r
-\r
-int\r
-__flt_rounds(void)\r
-{\r
- int x;\r
-\r
- __asm("mov %0=ar.fpsr" : "=r" (x));\r
- return (map[(x >> 10) & 0x03]);\r
-}\r
## @file\r
# Standard C library: Math Library.\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibMath\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# BSD Socket Library, Infrastructure functions.\r
#\r
-# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibNetUtil\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: StdLib implementations.\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibSignal\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: StdLib implementations.\r
#\r
-# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibStdLib\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Implementation for <stdio.h>.\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibStdio\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Miscelaneous implementations.\r
#\r
-# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibString\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Time implementations.\r
#\r
-# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibTime\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Console Device Abstraction.\r
#\r
-# Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available\r
# under the terms and conditions of the BSD License which accompanies this\r
# distribution. The full text of the license may be found at\r
DESTRUCTOR = __Cons_deconstruct\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
# When this library is included in an application, it creates the default device.\r
# This allows every device type not recognized to be passed to the shell for processing.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available\r
# under the terms and conditions of the BSD License which accompanies this\r
# distribution. The full text of the license may be found at\r
DESTRUCTOR = __dtor_DevShell\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Console Device Abstraction.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available\r
# under the terms and conditions of the BSD License which accompanies this\r
# distribution. The full text of the license may be found at\r
LIBRARY_CLASS = DevUtility\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
## @file\r
# Standard C library: Miscelaneous implementations.\r
#\r
-# Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
DESTRUCTOR = __wchar_deconstruct\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources]\r
# and extended-precision IEEE binary floating-point arithmetic, and\r
# other IEEE-like binary floating-point, including "double double".\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = LibGdtoa\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources.X64]\r
strtold_px.c\r
strtopx.c\r
\r
-[Sources.IPF]\r
- strtof.c\r
- Ipf/strtold.c\r
-\r
[Sources.IA32]\r
strtof.c\r
strtold_px.c\r
## @file\r
# Library used for supplying some POSIX routines.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r
## @file\r
# Library used for supplying glob POSIX routines.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r
## @file\r
# Library used for supplying glob POSIX routines.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF\r
+# VALID_ARCHITECTURES = IA32 X64\r
#\r
\r
[Sources.common]\r
## @file\r
# Library used for supplying glob POSIX routines.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r
# Component description file for the socket layer driver.\r
#\r
# This module implements the socket layer.\r
-# Copyright (c) 2011, Intel Corporation\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
ENTRY_POINT = EntryPoint\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r
## @file\r
# Declarations for the UDK Standard Libraries.\r
#\r
-# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available under\r
# the terms and conditions of the BSD License which accompanies this distribution.\r
[Includes.X64]\r
Include/X64\r
\r
-[Includes.IPF]\r
- Include/Ipf\r
-\r
[Includes.ARM]\r
Include/Arm\r
\r
# Sockets Library.\r
# Posix Library.\r
#\r
-# Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|$(DEBUG_PROPERTY_MASK)\r
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)\r
\r
-[PcdsFixedAtBuild.IPF]\r
-\r
[LibraryClasses]\r
#\r
# Entry Point Libraries\r
# Component description file for the EFI socket library.\r
#\r
# This module implements the socket layer.\r
-# Copyright (c) 2011, Intel Corporation\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
LIBRARY_CLASS = UseSocketDxe\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources.common]\r