]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/pal_routines.h
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / i386 / pal_routines.h
index dc59735b966604cc48b900021c2a7b3d39a096c8..40ebdf0bc668ee9f19f6a91d4570bd64fa741ca2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009 Apple Inc. All rights reserved.
+ * Copyright (c) 2009-2012 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -80,11 +80,7 @@ boolean_t pal_machine_sleep(uint8_t type_a,
 #ifdef XNU_KERNEL_PRIVATE
 
 /* Define any PAL-specific types for x86 */
-#ifdef __i386__
-typedef uint32_t pal_cr_t;
-#else
 typedef uint64_t pal_cr_t;
-#endif
 
 struct pal_cpu_data; /* Defined per-platform */
 struct pal_pcb; /* Defined per-platform */
@@ -155,6 +151,9 @@ void pal_efi_hibernate_prepare(void);
 #include <i386/pal_native.h>
 
 
+extern boolean_t virtualized;
+#define PAL_VIRTUALIZED_PROPERTY_VALUE 4
+       
 /* Allow for tricky IOKit property matching */
 #define PAL_AICPM_PROPERTY_NAME "intel_cpupm_matching"
 static inline void 
@@ -162,6 +161,8 @@ pal_get_resource_property(const char **property_name, int *property_value)
 {
        *property_name = PAL_AICPM_PROPERTY_NAME;
        *property_value = PAL_AICPM_PROPERTY_VALUE;
+       if (virtualized)
+               *property_value = PAL_VIRTUALIZED_PROPERTY_VALUE;
 }
 
 /* assembly function to update TSC / timebase info */