/* ***************************************************************************** ** * ** Copyright © 1993, 1994 * ** by Digital Equipment Corporation, Maynard, Massachusetts. * ** * ** All Rights Reserved * ** * ** Permission is hereby granted to use, copy, modify and distribute * ** this software and its documentation, in both source code and * ** object code form, and without fee, for the purpose of distribution * ** of this software or modifications of this software within products * ** incorporating an integrated circuit implementing Digital's AXP * ** architecture, regardless of the source of such integrated circuit, * ** provided that the above copyright notice and this permission notice * ** appear in all copies, and that the name of Digital Equipment * ** Corporation not be used in advertising or publicity pertaining to * ** distribution of the document or software without specific, written * ** prior permission. * ** * ** Digital Equipment Corporation disclaims all warranties and/or * ** guarantees with regard to this software, including all implied * ** warranties of fitness for a particular purpose and merchantability, * ** and makes no representations regarding the use of, or the results * ** of the use of, the software and documentation in terms of correctness, * ** accuracy, reliability, currentness or otherwise; and you rely on * ** the software, documentation and results solely at your own risk. * ** * ** AXP is a trademark of Digital Equipment Corporation. * ** * ***************************************************************************** */ /* ** 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<