From: Oliver Kurth Date: Tue, 5 Jun 2018 22:45:04 +0000 (-0700) Subject: Define 64-bit PPN, TPPN, PageNum and PageCnt X-Git-Tag: stable-11.0.0~580 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=277b574bebe8f7c595e2c6002ead84cfe4492d8d;p=thirdparty%2Fopen-vm-tools.git Define 64-bit PPN, TPPN, PageNum and PageCnt This change introduces 64-bit PPN, TPPN, PageNum and PageCnt types so we can start dropping 64 suffix everywhere in the code base. --- diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index 77e00fea0..331a07089 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -483,16 +483,18 @@ typedef uint8 *TCA; /* Pointer into TC (usually). */ * Type big enough to hold an integer between 0..100 */ typedef uint8 Percent; -#define AsPercent(v) ((Percent)(v)) +#define AsPercent(v) ((Percent)(v)) typedef uintptr_t VA; typedef uintptr_t VPN; typedef uint64 PA; +typedef uint64 PPN; typedef uint32 PPNTMP; typedef uint64 TPA; +typedef uint64 TPPN; typedef uint64 PhysMemOff; typedef uint64 PhysMemSize; @@ -508,9 +510,11 @@ typedef uint64 BPN; #define BPN_2_UINT64(b) ((uint64)(b)) typedef uint64 PgCnt64; +typedef uint64 PageCnt; typedef uint64 PgNum64; -typedef unsigned MemHandle; -typedef unsigned int IoHandle; +typedef uint64 PageNum; +typedef unsigned MemHandle; +typedef unsigned IoHandle; typedef int32 World_ID; /* !! do not alter the definition of INVALID_WORLD_ID without ensuring