/* * Copyright (c) 1993-1994 The Hewlett-Packard Development Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer; * 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; * neither the name of the copyright holders nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT * OWNER 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. */ #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<