From: VMware, Inc <> Date: Tue, 13 Mar 2012 20:14:20 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2012.03.13-651368~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2cb2154c7014d9857f50c7947eeeabde8a45136;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index 42c9f0e93..139ee391a 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -637,9 +637,11 @@ typedef int pid_t; #ifdef _WIN32 #define WIN32_ONLY(x) x #define POSIX_ONLY(x) +#define vmx86_win32 1 #else #define WIN32_ONLY(x) #define POSIX_ONLY(x) x +#define vmx86_win32 0 #endif #ifdef __linux__ diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index 220f1438b..75ecfbbb6 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -570,7 +570,7 @@ typedef void * UserVA; * for any region other than buserror. */ #define PHYSMEM_MAX_PPN ((PPN)0xffffffff) -#define MAX_PPN ((PPN)0x1fffffff) /* Maximal observable PPN value. */ +#define MAX_PPN ((PPN)0x3fffffff) /* Maximal observable PPN value. */ #define INVALID_PPN ((PPN)0xffffffff) #define APIC_INVALID_PPN ((PPN)0xfffffffe) diff --git a/open-vm-tools/lib/misc/utilMem.c b/open-vm-tools/lib/misc/utilMem.c index 70047d0ee..df234e7fd 100644 --- a/open-vm-tools/lib/misc/utilMem.c +++ b/open-vm-tools/lib/misc/utilMem.c @@ -321,7 +321,7 @@ Util_Memcpy(void *dest, const void *src, size_t count) { -#if !defined(__ANDROID__) && !defined(TARGET_OS_IPHONE) +#if defined(__x86_64__) || defined(__i386__) uintptr_t align = ((uintptr_t)dest | (uintptr_t)src | count); #if defined __GNUC__