/* * Copyright 1993, 1994 Hewlett-Packard Development Company, L.P. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef FROMHUDSONOSF_INCLUDED #define FROMHUDSONOSF_INCLUDED 1 #define __OSF_LOADED 1 /* ** Seg0 and Seg1 Virtual Address (VA) Format ** ** Loc Size Name Function ** ----- ---- ---- --------------------------------- ** <42:33> 10 SEG1 First level page table offset ** <32:23> 10 SEG2 Second level page table offset ** <22:13> 10 SEG3 Third level page table offset ** <12:00> 13 OFFSET Byte within page offset */ #define VA_V_SEG1 33 #define VA_M_SEG1 (0x3FF< 32 PFN Page Frame Number ** <31:16> 16 SW Reserved for software ** <15:14> 2 RSV0 Reserved for hardware SBZ ** <13> 1 UWE User Write Enable ** <12> 1 KWE Kernel Write Enable ** <11:10> 2 RSV1 Reserved for hardware SBZ ** <9> 1 URE User Read Enable ** <8> 1 KRE Kernel Read Enable ** <7> 1 RSV2 Reserved for hardware SBZ ** <6:5> 2 GH Granularity Hint ** <4> 1 ASM Address Space Match ** <3> 1 FOE Fault On Execute ** <2> 1 FOW Fault On Write ** <1> 1 FOR Fault On Read ** <0> 1 V Valid */ #define PTE_V_PFN 32 #define PTE_M_PFN 0xFFFFFFFF00000000 #define PTE_V_SW 16 #define PTE_M_SW 0x00000000FFFF0000 #define PTE_V_UWE 13 #define PTE_M_UWE (1< 1 CM Current Mode ** <2:0> 3 IPL Interrupt Priority Level **/ #define PS_V_CM 3 #define PS_M_CM (1< 1 MIP Machine check in progress ** <1> 1 SCE System correctable error in progress ** <2> 1 PCE Processor correctable error in progress ** <3> 1 DPC Disable PCE error reporting ** <4> 1 DSC Disable SCE error reporting */ #define MCES_V_MIP 0 #define MCES_M_MIP (1< 8 ID Who-Am-I identifier ** <15:8> 1 SWAP Swap PALcode flag - character 'S' */ #define WHAMI_V_SWAP 8 #define WHAMI_M_SWAP (1<