diff -urN vbox-trunk-bk\src\VBox\VMM/include/EMInternal.h vbox-trunk\src\VBox\VMM/include/EMInternal.h
old
|
new
|
|
73 | 73 | STAMCOUNTER Counter; |
74 | 74 | } CLISTAT, *PCLISTAT; |
75 | 75 | #ifdef IN_RING3 |
| 76 | #if !defined(RT_OS_OS2) |
76 | 77 | AssertCompileMemberAlignment(CLISTAT, Counter, 8); |
77 | 78 | #endif |
| 79 | #endif |
78 | 80 | |
79 | 81 | |
80 | 82 | /** |
diff -urN vbox-trunk-bk\src\VBox\VMM/include/IEMInternal.h vbox-trunk\src\VBox\VMM/include/IEMInternal.h
old
|
new
|
|
664 | 664 | * @param a_ArgList The argument list enclosed in parentheses. |
665 | 665 | */ |
666 | 666 | |
667 | | #if defined(__GNUC__) && defined(RT_ARCH_X86) |
| 667 | #if defined(__GNUC__) && defined(RT_ARCH_X86) && !defined(__EMX__) |
668 | 668 | # define IEM_DECL_IMPL_TYPE(a_RetType, a_Name, a_ArgList) \ |
669 | 669 | __attribute__((__fastcall__)) a_RetType (a_Name) a_ArgList |
670 | 670 | # define IEM_DECL_IMPL_DEF(a_RetType, a_Name, a_ArgList) \ |
diff -urN vbox-trunk-bk\src\VBox\VMM/include/PDMInternal.h vbox-trunk\src\VBox\VMM/include/PDMInternal.h
old
|
new
|
|
314 | 314 | /** Profiling the time the section is locked. */ |
315 | 315 | STAMPROFILEADV StatLocked; |
316 | 316 | } PDMCRITSECTINT; |
| 317 | #if !defined(RT_OS_OS2) |
317 | 318 | AssertCompileMemberAlignment(PDMCRITSECTINT, StatContentionRZLock, 8); |
| 319 | #endif |
318 | 320 | /** Pointer to private critical section data. */ |
319 | 321 | typedef PDMCRITSECTINT *PPDMCRITSECTINT; |
320 | 322 | |
… |
… |
|
374 | 376 | /** Profiling the time the section is write locked. */ |
375 | 377 | STAMPROFILEADV StatWriteLocked; |
376 | 378 | } PDMCRITSECTRWINT; |
| 379 | #if !defined(RT_OS_OS2) |
377 | 380 | AssertCompileMemberAlignment(PDMCRITSECTRWINT, StatContentionRZEnterExcl, 8); |
378 | 381 | AssertCompileMemberAlignment(PDMCRITSECTRWINT, Core.u64State, 8); |
| 382 | #endif |
379 | 383 | /** Pointer to private critical section data. */ |
380 | 384 | typedef PDMCRITSECTRWINT *PPDMCRITSECTRWINT; |
381 | 385 | |
… |
… |
|
1142 | 1146 | /** Number of times a critical section leave request needed to be queued for ring-3 execution. */ |
1143 | 1147 | STAMCOUNTER StatQueuedCritSectLeaves; |
1144 | 1148 | } PDM; |
| 1149 | #if !defined(RT_OS_OS2) |
1145 | 1150 | AssertCompileMemberAlignment(PDM, GCPhysVMMDevHeap, sizeof(RTGCPHYS)); |
1146 | 1151 | AssertCompileMemberAlignment(PDM, CritSect, 8); |
1147 | 1152 | AssertCompileMemberAlignment(PDM, StatQueuedCritSectLeaves, 8); |
| 1153 | #endif |
1148 | 1154 | /** Pointer to PDM VM instance data. */ |
1149 | 1155 | typedef PDM *PPDM; |
1150 | 1156 | |
diff -urN vbox-trunk-bk\src\VBox\VMM/include/PGMInternal.h vbox-trunk\src\VBox\VMM/include/PGMInternal.h
old
|
new
|
|
2005 | 2005 | /** The physical address for this entry. */ |
2006 | 2006 | RTHCPHYS HCPhys; |
2007 | 2007 | } PGMMAPSETENTRY; |
| 2008 | #if !defined(RT_OS_OS2) |
2008 | 2009 | AssertCompileMemberOffset(PGMMAPSETENTRY, iPage, RT_MAX(sizeof(RTR0PTR), sizeof(RTRCPTR))); |
2009 | 2010 | AssertCompileMemberAlignment(PGMMAPSETENTRY, HCPhys, sizeof(RTHCPHYS)); |
| 2011 | #endif |
2010 | 2012 | /** Pointer to a mapping cache usage set entry. */ |
2011 | 2013 | typedef PGMMAPSETENTRY *PPGMMAPSETENTRY; |
2012 | 2014 | |
… |
… |
|
2565 | 2567 | */ |
2566 | 2568 | PGMPOOLPAGE aPages[PGMPOOL_IDX_FIRST]; |
2567 | 2569 | } PGMPOOL, *PPGMPOOL, **PPPGMPOOL; |
| 2570 | #if !defined(RT_OS_OS2) |
2568 | 2571 | AssertCompileMemberAlignment(PGMPOOL, iModifiedHead, 8); |
2569 | 2572 | AssertCompileMemberAlignment(PGMPOOL, aDirtyPages, 8); |
2570 | 2573 | AssertCompileMemberAlignment(PGMPOOL, cUsedPages, 8); |
… |
… |
|
2572 | 2575 | AssertCompileMemberAlignment(PGMPOOL, StatAlloc, 8); |
2573 | 2576 | #endif |
2574 | 2577 | AssertCompileMemberAlignment(PGMPOOL, aPages, 8); |
| 2578 | #endif |
2575 | 2579 | |
2576 | 2580 | |
2577 | 2581 | /** @def PGMPOOL_PAGE_2_PTR |
… |
… |
|
3591 | 3595 | #endif |
3592 | 3596 | } PGM; |
3593 | 3597 | #ifndef IN_TSTVMSTRUCTGC /* HACK */ |
| 3598 | #if !defined(RT_OS_OS2) |
3594 | 3599 | AssertCompileMemberAlignment(PGM, paDynPageMap32BitPTEsGC, 8); |
3595 | 3600 | AssertCompileMemberAlignment(PGM, GCPtrMappingFixed, sizeof(RTGCPTR)); |
3596 | 3601 | AssertCompileMemberAlignment(PGM, HCPhysInterPD, 8); |
… |
… |
|
3600 | 3605 | AssertCompileMemberAlignment(PGM, HCPhysZeroPg, 8); |
3601 | 3606 | AssertCompileMemberAlignment(PGM, aHandyPages, 8); |
3602 | 3607 | AssertCompileMemberAlignment(PGM, cRelocations, 8); |
| 3608 | #endif |
3603 | 3609 | #endif /* !IN_TSTVMSTRUCTGC */ |
3604 | 3610 | /** Pointer to the PGM instance data. */ |
3605 | 3611 | typedef PGM *PPGM; |
diff -urN vbox-trunk-bk\src\VBox\VMM/Makefile.kmk vbox-trunk\src\VBox\VMM/Makefile.kmk
old
|
new
|
|
22 | 22 | ifndef VBOX_ONLY_EXTPACKS |
23 | 23 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk |
24 | 24 | endif |
25 | | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk |
26 | | |
| 25 | # Disabled temporarily (Out-of-memory error in NASM) |
| 26 | ifn1of ($(KBUILD_TARGET),os2) |
| 27 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk |
| 28 | endif |
27 | 29 | |
28 | 30 | # Fail on unsupported hosts. |
29 | 31 | ifeq ($(KBUILD_TARGET_ARCH),x86) |
… |
… |
|
133 | 135 | VBoxVMM_INCS = \ |
134 | 136 | include \ |
135 | 137 | $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) |
136 | | VBoxVMM_ASINCS = . |
| 138 | VBoxVMM_ASINCS = . \ |
| 139 | VMMR3 |
137 | 140 | |
138 | 141 | VBoxVMM_SOURCES = \ |
139 | 142 | VBoxVMM.d \ |
… |
… |
|
285 | 288 | VMMSwitcher/AMD64ToPAE.asm |
286 | 289 | endif |
287 | 290 | VBoxVMM_SOURCES.x86 += \ |
288 | | VMMSwitcher/32BitToAMD64.asm \ |
289 | | VMMSwitcher/PAEToAMD64.asm \ |
290 | 291 | VMMSwitcher/X86Stub.asm |
291 | 292 | VBoxVMM_SOURCES.amd64 += \ |
| 293 | VMMSwitcher/32BitToAMD64.asm \ |
| 294 | VMMSwitcher/PAEToAMD64.asm \ |
292 | 295 | VMMSwitcher/AMD64Stub.asm |
293 | 296 | |
294 | 297 | VBoxVMM_LIBS = \ |
… |
… |
|
305 | 308 | VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined |
306 | 309 | VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib |
307 | 310 | VBoxVMM_LDFLAGS.solaris = -mimpure-text |
| 311 | # VBoxVMM_LIBS.os2 = $(PATH_STAGE_LIB)/RuntimeR3$(VBOX_SUFF_LIB) |
308 | 312 | |
309 | 313 | # SSM wish to know the build type, host os and arch. |
310 | 314 | VMMR3/SSM.cpp_DEFS += \ |
… |
… |
|
381 | 385 | |
382 | 386 | $$(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@) |
383 | 387 | ifeq ($(VBOX_LDR_FMT),lx) |
| 388 | # -e '/not-amd64/d' |
384 | 389 | $(SED) \ |
385 | 390 | -e '/not-os2/d' \ |
386 | | -e '/not-amd64/d' \ |
| 391 | -e '/not-x86/d' \ |
387 | 392 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \ |
388 | 393 | -e 's/[ \t]DATA[ \t]*/ /' \ |
389 | 394 | --output $@ $< |
… |
… |
|
560 | 565 | |
561 | 566 | VMMR0_INCS = \ |
562 | 567 | include \ |
| 568 | VMMR0 \ |
563 | 569 | $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) |
564 | 570 | |
565 | 571 | VMMR0_SOURCES = \ |
diff -urN vbox-trunk-bk\src\VBox\VMM/tools/Makefile.kmk vbox-trunk\src\VBox\VMM/tools/Makefile.kmk
old
|
new
|
|
64 | 64 | $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \ |
65 | 65 | $(VBOX_LIB_RUNTIME_STATIC) |
66 | 66 | VBoxCpuReport_LIBS.solaris = kstat contract |
67 | | |
| 67 | VBoxCpuReport_LIBS.os2 = c_omf386 |
68 | 68 | VBoxCpuReport_LDFLAGS.darwin = \ |
69 | 69 | -framework IOKit -framework CoreFoundation -framework CoreServices |
70 | 70 | |
diff -urN vbox-trunk-bk\src\VBox\VMM/VMMR3/PDMDriver.cpp vbox-trunk\src\VBox\VMM/VMMR3/PDMDriver.cpp
old
|
new
|
|
1533 | 1533 | return rc; |
1534 | 1534 | } |
1535 | 1535 | |
| 1536 | #ifdef VBOX_WITH_PDM_ASYNC_COMPLETION |
1536 | 1537 | |
1537 | 1538 | /** @interface_method_impl{PDMDRVHLP,pfnAsyncCompletionTemplateCreate} */ |
1538 | 1539 | static DECLCALLBACK(int) pdmR3DrvHlp_AsyncCompletionTemplateCreate(PPDMDRVINS pDrvIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, |
… |
… |
|
1550 | 1551 | return rc; |
1551 | 1552 | } |
1552 | 1553 | |
| 1554 | #endif |
1553 | 1555 | |
1554 | 1556 | #ifdef VBOX_WITH_NETSHAPER |
1555 | 1557 | /** @interface_method_impl{PDMDRVHLP,pfnNetShaperAttach} */ |
… |
… |
|
1813 | 1815 | pdmR3DrvHlp_SetAsyncNotification, |
1814 | 1816 | pdmR3DrvHlp_AsyncNotificationCompleted, |
1815 | 1817 | pdmR3DrvHlp_ThreadCreate, |
| 1818 | #ifdef VBOX_WITH_PDM_ASYNC_COMPLETION |
1816 | 1819 | pdmR3DrvHlp_AsyncCompletionTemplateCreate, |
| 1820 | #else |
| 1821 | NULL, |
| 1822 | #endif |
1817 | 1823 | #ifdef VBOX_WITH_NETSHAPER |
1818 | 1824 | pdmR3DrvHlp_NetShaperAttach, |
1819 | 1825 | pdmR3DrvHlp_NetShaperDetach, |
| 1826 | #else |
| 1827 | NULL, |
| 1828 | NULL, |
1820 | 1829 | #endif /* VBOX_WITH_NETSHAPER */ |
1821 | 1830 | pdmR3DrvHlp_LdrGetRCInterfaceSymbols, |
1822 | 1831 | pdmR3DrvHlp_LdrGetR0InterfaceSymbols, |
diff -urN vbox-trunk-bk\src\VBox\VMM/VMMR3/SSM.cpp vbox-trunk\src\VBox\VMM/VMMR3/SSM.cpp
old
|
new
|
|
1801 | 1801 | * @param pszName Data unit name. |
1802 | 1802 | * @remark Only for dynamic data units. |
1803 | 1803 | */ |
1804 | | VMMR3DECL(int) SSMR3DeregisterExternal(PUVM pUVM, const char *pszName) |
| 1804 | VMMR3DECL(int) SSMR3DeregisterExternal(PVM pVM, const char *pszName) |
1805 | 1805 | { |
1806 | | UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE); |
1807 | | PVM pVM = pUVM->pVM; |
1808 | 1806 | VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE); |
| 1807 | PUVM pUVM = pVM->pUVM; |
| 1808 | UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE); |
1809 | 1809 | |
1810 | 1810 | return ssmR3DeregisterByNameAndType(pVM, pszName, SSMUNITTYPE_EXTERNAL); |
1811 | 1811 | } |
diff -urN vbox-trunk-bk\src\VBox\VMM/VMMR3/VMMSwitcher.cpp vbox-trunk\src\VBox\VMM/VMMR3/VMMSwitcher.cpp
old
|
new
|
|
98 | 98 | static PVMMSWITCHERDEF g_apHmSwitchers[VMMSWITCHER_MAX] = |
99 | 99 | { |
100 | 100 | NULL, /* invalid entry */ |
101 | | #if HC_ARCH_BITS == 32 |
| 101 | // ??? #if HC_ARCH_BITS == 32 |
| 102 | #if HC_ARCH_BITS == 32 && defined(VBOX_WITH_HYBRID_32BIT_KERNEL) |
102 | 103 | NULL, //&vmmR3Switcher32BitTo32Bit_Def, |
103 | 104 | NULL, //&vmmR3Switcher32BitToPAE_Def, |
104 | 105 | &vmmR3Switcher32BitToAMD64_Def, |
diff -urN vbox-trunk-bk\src\VBox\VMM/VMMRC/VMMRC.def vbox-trunk\src\VBox\VMM/VMMRC/VMMRC.def
old
|
new
|
|
93 | 93 | RTAssertMsg1Weak |
94 | 94 | RTAssertMsg2Weak |
95 | 95 | RTAssertShouldPanic |
96 | | RTLogDefaultInstance |
| 96 | ; RTLogDefaultInstance ; (doubly defined) |
97 | 97 | RTTimeNanoTSLegacySyncInvarNoDelta |
98 | 98 | RTTimeNanoTSLegacySyncInvarWithDelta |
99 | 99 | RTTimeNanoTSLegacyAsync |