This change retires 32-bit PPN, TPPN, PageNum, PageCnt types and
introduces temporary PPNTMP type for tools (graphics, pvscsi, balloon),
so that driver owners can work on PPN64 conversion at their own
pace and can easily identify places that require attention.
typedef uintptr_t VPN;
typedef uint64 PA;
-typedef uint32 PPN;
+typedef uint32 PPNTMP;
typedef uint64 TPA;
-typedef uint32 TPPN;
typedef uint64 PhysMemOff;
typedef uint64 PhysMemSize;
#define UINT64_2_BPN(u) ((BPN)(u))
#define BPN_2_UINT64(b) ((uint64)(b))
-typedef uint32 PageCnt;
typedef uint64 PgCnt64;
-typedef uint32 PageNum;
typedef uint64 PgNum64;
typedef unsigned MemHandle;
typedef unsigned int IoHandle;
#define INVALID_LPN ((LPN)-1)
#define INVALID_VPN ((VPN)-1)
#define INVALID_LPN64 ((LPN64)-1)
-#define INVALID_PAGENUM ((PageNum)-1)
+#define INVALID_PAGENUM ((uint32)-1)
/*
* Format modifier for printing VA, LA, and VPN.
/*********************************************************
- * Copyright (C) 2000-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2000-2018 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
int isLargePage, // IN
uint32 *target) // OUT
{
- PPN pagePPN;
+ PPNTMP pagePPN;
BalloonChunk *chunk;
int status;
int isLargePage, // IN
uint32 *target) // OUT
{
- PPN pagePPN = PA_2_PPN(OS_ReservedPageGetPA(b->pageHandle));
+ PPNTMP pagePPN = PA_2_PPN(OS_ReservedPageGetPA(b->pageHandle));
int status = Backdoor_MonitorUnlockPage(b, pagePPN, target);
ASSERT(!isLargePage);