Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ionescu007/SimpleVisor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/vmx.h
diff options
context:
space:
mode:
authorionescu007 <aionescu+git@gmail.com>2016-08-30 01:06:08 +0300
committerionescu007 <aionescu+git@gmail.com>2016-08-30 01:06:08 +0300
commitd580e2e5b8bac8b814927242ce773f366db62fde (patch)
tree77467f05c8ac86c8ea3b19dc6f595c6eb817f113 /vmx.h
parentd9177eedf1993573e06f36beb41455ac36a76d42 (diff)
More portability.
Fix the last few stragglers.
Diffstat (limited to 'vmx.h')
-rw-r--r--vmx.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vmx.h b/vmx.h
index 13d9ff6..d056f47 100644
--- a/vmx.h
+++ b/vmx.h
@@ -31,6 +31,7 @@ Environment:
#define RPL_MASK 3
#define MTRR_TYPE_WB 6
#define EFLAGS_ALIGN_CHECK 0x40000
+#define PAGE_SIZE 4096
typedef struct _KDESCRIPTOR
{
@@ -409,7 +410,7 @@ enum vmcs_field {
typedef struct _VMX_GDTENTRY64
{
- ULONG_PTR Base;
+ uintptr_t Base;
UINT32 Limit;
union
{
@@ -441,7 +442,7 @@ typedef struct _VMX_GDTENTRY64
UINT16 Selector;
} VMX_GDTENTRY64, *PVMX_GDTENTRY64;
-typedef struct DECLSPEC_ALIGN(PAGE_SIZE) _VMX_VMCS
+typedef struct _VMX_VMCS
{
UINT32 RevisionId;
UINT32 AbortIndicator;