VirtualBox

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

Last change on this file since 768 was 23, checked in by vboxsync, 18 years ago

string.h & stdio.h + header cleanups.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1/* $Id: PGMGCShw.h 23 2007-01-15 14:08:28Z vboxsync $ */
2/** @file
3 * VBox - Page Manager, Shadow Paging Template - Guest Context.
4 */
5
6/*
7 * Copyright (C) 2006 InnoTek Systemberatung GmbH
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 as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
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