VirtualBox

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

Last change on this file since 5605 was 4071, checked in by vboxsync, 17 years ago

Biggest check-in ever. New source code headers for all (C) innotek files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1/* $Id: PGMGCShw.h 4071 2007-08-07 17:07:59Z vboxsync $ */
2/** @file
3 * VBox - Page Manager, Shadow Paging Template - Guest Context.
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek 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
18/*******************************************************************************
19* Defined Constants And Macros *
20*******************************************************************************/
21#undef SHWPT
22#undef PSHWPT
23#undef SHWPTE
24#undef PSHWPTE
25#undef SHWPD
26#undef PSHWPD
27#undef SHWPDE
28#undef PSHWPDE
29#undef SHW_PDE_PG_MASK
30#undef SHW_PD_SHIFT
31#undef SHW_PD_MASK
32#undef SHW_PTE_PG_MASK
33#undef SHW_PT_SHIFT
34#undef SHW_PT_MASK
35
36#if PGM_SHW_TYPE == PGM_TYPE_32BIT
37# define SHWPT X86PT
38# define PSHWPT PX86PT
39# define SHWPTE X86PTE
40# define PSHWPTE PX86PTE
41# define SHWPD X86PD
42# define PSHWPD PX86PD
43# define SHWPDE X86PDE
44# define PSHWPDE PX86PDE
45# define SHW_PDE_PG_MASK X86_PDE_PG_MASK
46# define SHW_PD_SHIFT X86_PD_SHIFT
47# define SHW_PD_MASK X86_PD_MASK
48# define SHW_PTE_PG_MASK X86_PTE_PG_MASK
49# define SHW_PT_SHIFT X86_PT_SHIFT
50# define SHW_PT_MASK X86_PT_MASK
51#else
52# define SHWPT X86PTPAE
53# define PSHWPT PX86PTPAE
54# define SHWPTE X86PTEPAE
55# define PSHWPTE PX86PTEPAE
56# define SHWPD X86PDPAE
57# define PSHWPD PX86PDPAE
58# define SHWPDE X86PDEPAE
59# define PSHWPDE PX86PDEPAE
60# define SHW_PDE_PG_MASK X86_PDE_PAE_PG_MASK
61# define SHW_PD_SHIFT X86_PD_PAE_SHIFT
62# define SHW_PD_MASK X86_PD_PAE_MASK
63# define SHW_PTE_PG_MASK X86_PTE_PAE_PG_MASK
64# define SHW_PT_SHIFT X86_PT_PAE_SHIFT
65# define SHW_PT_MASK X86_PT_PAE_MASK
66#endif
67
68
69/*******************************************************************************
70* Internal Functions *
71*******************************************************************************/
72__BEGIN_DECLS
73__END_DECLS
74
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