VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMGC/PGMGCShw.h@ 10502

Last change on this file since 10502 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1/* $Id: PGMGCShw.h 8155 2008-04-18 15:16:47Z vboxsync $ */
2/** @file
3 * VBox - Page Manager, Shadow Paging Template - Guest Context.
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22/*******************************************************************************
23* Defined Constants And Macros *
24*******************************************************************************/
25#undef SHWPT
26#undef PSHWPT
27#undef SHWPTE
28#undef PSHWPTE
29#undef SHWPD
30#undef PSHWPD
31#undef SHWPDE
32#undef PSHWPDE
33#undef SHW_PDE_PG_MASK
34#undef SHW_PD_SHIFT
35#undef SHW_PD_MASK
36#undef SHW_PTE_PG_MASK
37#undef SHW_PT_SHIFT
38#undef SHW_PT_MASK
39
40#if PGM_SHW_TYPE == PGM_TYPE_32BIT
41# define SHWPT X86PT
42# define PSHWPT PX86PT
43# define SHWPTE X86PTE
44# define PSHWPTE PX86PTE
45# define SHWPD X86PD
46# define PSHWPD PX86PD
47# define SHWPDE X86PDE
48# define PSHWPDE PX86PDE
49# define SHW_PDE_PG_MASK X86_PDE_PG_MASK
50# define SHW_PD_SHIFT X86_PD_SHIFT
51# define SHW_PD_MASK X86_PD_MASK
52# define SHW_PTE_PG_MASK X86_PTE_PG_MASK
53# define SHW_PT_SHIFT X86_PT_SHIFT
54# define SHW_PT_MASK X86_PT_MASK
55#else
56# define SHWPT X86PTPAE
57# define PSHWPT PX86PTPAE
58# define SHWPTE X86PTEPAE
59# define PSHWPTE PX86PTEPAE
60# define SHWPD X86PDPAE
61# define PSHWPD PX86PDPAE
62# define SHWPDE X86PDEPAE
63# define PSHWPDE PX86PDEPAE
64# define SHW_PDE_PG_MASK X86_PDE_PAE_PG_MASK
65# define SHW_PD_SHIFT X86_PD_PAE_SHIFT
66# define SHW_PD_MASK X86_PD_PAE_MASK
67# define SHW_PTE_PG_MASK X86_PTE_PAE_PG_MASK
68# define SHW_PT_SHIFT X86_PT_PAE_SHIFT
69# define SHW_PT_MASK X86_PT_PAE_MASK
70#endif
71
72
73/*******************************************************************************
74* Internal Functions *
75*******************************************************************************/
76__BEGIN_DECLS
77__END_DECLS
78
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette