Changeset 14914 in vbox for trunk/src/VBox
- Timestamp:
- Dec 2, 2008 3:33:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r14905 r14914 665 665 * host_vmxon & host_vmxoff in Tiger. 666 666 */ 667 static int g_fWeakHostVmxOnOff = false; 668 667 #if 0 669 668 __BEGIN_DECLS 669 #if 1 670 #pragma weak host_vmxon 671 int host_vmxon(int exclusive) __attribute__((weak_import)); 672 #pragma weak host_vmxoff 673 void host_vmxoff(void) __attribute__((weak_import)); 674 #else 670 675 int host_vmxon(int exclusive) __attribute__((weak)); 671 676 void host_vmxoff(void) __attribute__((weak)); 677 #endif 672 678 __END_DECLS 673 679 680 static int g_fWeakHostVmxOnOff = false; 681 #if 0 674 682 /* weak version for Tiger. */ 675 683 int host_vmxon(int exclusive) … … 685 693 g_fWeakHostVmxOnOff = true; 686 694 } 695 #endif 696 #endif 687 697 688 698 … … 695 705 int VBOXCALL supdrvOSEnableVTx(bool fEnable) 696 706 { 707 #if 0 708 if (host_vmxon == NULL || host_vmxoff == NULL) 709 g_fWeakHostVmxOnOff = true; 697 710 if (g_fWeakHostVmxOnOff) 698 711 return VERR_NOT_SUPPORTED; … … 724 737 } 725 738 return rc; 739 #else 740 return VERR_NOT_SUPPORTED; 741 #endif 726 742 } 727 743
Note:
See TracChangeset
for help on using the changeset viewer.