Ticket #1: vmm-align.diff

File vmm-align.diff, 8.3 KB (added by Valery V. Sedletski, 9 years ago)

VMM

  • \src\VBox\VMM/include/EMInternal.h

    diff -urN vbox-clean-bk\src\VBox\VMM/include/EMInternal.h vbox-clean\src\VBox\VMM/include/EMInternal.h
    old new  
    7373    STAMCOUNTER             Counter;
    7474} CLISTAT, *PCLISTAT;
    7575#ifdef IN_RING3
     76#if !defined(RT_OS_OS2)
    7677AssertCompileMemberAlignment(CLISTAT, Counter, 8);
    7778#endif
     79#endif
    7880
    7981
    8082/**
  • \src\VBox\VMM/include/PDMInternal.h

    diff -urN vbox-clean-bk\src\VBox\VMM/include/PDMInternal.h vbox-clean\src\VBox\VMM/include/PDMInternal.h
    old new  
    314314    /** Profiling the time the section is locked. */
    315315    STAMPROFILEADV                  StatLocked;
    316316} PDMCRITSECTINT;
     317#if !defined(RT_OS_OS2)
    317318AssertCompileMemberAlignment(PDMCRITSECTINT, StatContentionRZLock, 8);
     319#endif
    318320/** Pointer to private critical section data. */
    319321typedef PDMCRITSECTINT *PPDMCRITSECTINT;
    320322
     
    374376    /** Profiling the time the section is write locked. */
    375377    STAMPROFILEADV                      StatWriteLocked;
    376378} PDMCRITSECTRWINT;
     379#if !defined(RT_OS_OS2)
    377380AssertCompileMemberAlignment(PDMCRITSECTRWINT, StatContentionRZEnterExcl, 8);
    378381AssertCompileMemberAlignment(PDMCRITSECTRWINT, Core.u64State, 8);
     382#endif
    379383/** Pointer to private critical section data. */
    380384typedef PDMCRITSECTRWINT *PPDMCRITSECTRWINT;
    381385
     
    11421146    /** Number of times a critical section leave request needed to be queued for ring-3 execution. */
    11431147    STAMCOUNTER                     StatQueuedCritSectLeaves;
    11441148} PDM;
     1149#if !defined(RT_OS_OS2)
    11451150AssertCompileMemberAlignment(PDM, GCPhysVMMDevHeap, sizeof(RTGCPHYS));
    11461151AssertCompileMemberAlignment(PDM, CritSect, 8);
    11471152AssertCompileMemberAlignment(PDM, StatQueuedCritSectLeaves, 8);
     1153#endif
    11481154/** Pointer to PDM VM instance data. */
    11491155typedef PDM *PPDM;
    11501156
  • \src\VBox\VMM/include/PGMInternal.h

    diff -urN vbox-clean-bk\src\VBox\VMM/include/PGMInternal.h vbox-clean\src\VBox\VMM/include/PGMInternal.h
    old new  
    20092009    /** The physical address for this entry. */
    20102010    RTHCPHYS                    HCPhys;
    20112011} PGMMAPSETENTRY;
     2012#if !defined(RT_OS_OS2)
    20122013AssertCompileMemberOffset(PGMMAPSETENTRY, iPage, RT_MAX(sizeof(RTR0PTR), sizeof(RTRCPTR)));
    20132014AssertCompileMemberAlignment(PGMMAPSETENTRY, HCPhys, sizeof(RTHCPHYS));
     2015#endif
    20142016/** Pointer to a mapping cache usage set entry. */
    20152017typedef PGMMAPSETENTRY *PPGMMAPSETENTRY;
    20162018
     
    25692571     */
    25702572    PGMPOOLPAGE                 aPages[PGMPOOL_IDX_FIRST];
    25712573} PGMPOOL, *PPGMPOOL, **PPPGMPOOL;
     2574#if !defined(RT_OS_OS2)
    25722575AssertCompileMemberAlignment(PGMPOOL, iModifiedHead, 8);
    25732576AssertCompileMemberAlignment(PGMPOOL, aDirtyPages, 8);
    25742577AssertCompileMemberAlignment(PGMPOOL, cUsedPages, 8);
     
    25762579AssertCompileMemberAlignment(PGMPOOL, StatAlloc, 8);
    25772580#endif
    25782581AssertCompileMemberAlignment(PGMPOOL, aPages, 8);
     2582#endif
    25792583
    25802584
    25812585/** @def PGMPOOL_PAGE_2_PTR
     
    35953599#endif
    35963600} PGM;
    35973601#ifndef IN_TSTVMSTRUCTGC /* HACK */
     3602#if !defined(RT_OS_OS2)
    35983603AssertCompileMemberAlignment(PGM, paDynPageMap32BitPTEsGC, 8);
    35993604AssertCompileMemberAlignment(PGM, GCPtrMappingFixed, sizeof(RTGCPTR));
    36003605AssertCompileMemberAlignment(PGM, HCPhysInterPD, 8);
     
    36043609AssertCompileMemberAlignment(PGM, HCPhysZeroPg, 8);
    36053610AssertCompileMemberAlignment(PGM, aHandyPages, 8);
    36063611AssertCompileMemberAlignment(PGM, cRelocations, 8);
     3612#endif
    36073613#endif /* !IN_TSTVMSTRUCTGC */
    36083614/** Pointer to the PGM instance data. */
    36093615typedef PGM *PPGM;
  • \src\VBox\VMM/Makefile.kmk

    diff -urN vbox-clean-bk\src\VBox\VMM/Makefile.kmk vbox-clean\src\VBox\VMM/Makefile.kmk
    old new  
    2222ifndef VBOX_ONLY_EXTPACKS
    2323 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
    2424endif
    25 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
    26 
     25# Disabled temporarily (Out-of-memory error in NASM)
     26ifn1of ($(KBUILD_TARGET),os2)
     27 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
     28endif
    2729
    2830#
    2931# Globals
     
    126128VBoxVMM_INCS     = \
    127129        include \
    128130        $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,)
    129 VBoxVMM_ASINCS   = .
     131VBoxVMM_ASINCS   = . \
     132        VMMR3
    130133
    131134VBoxVMM_SOURCES  = \
    132135        VBoxVMM.d \
     
    279282        VMMSwitcher/AMD64ToPAE.asm
    280283endif
    281284VBoxVMM_SOURCES.x86 += \
    282         VMMSwitcher/32BitToAMD64.asm \
    283         VMMSwitcher/PAEToAMD64.asm \
    284285        VMMSwitcher/X86Stub.asm
    285286VBoxVMM_SOURCES.amd64 += \
     287        VMMSwitcher/32BitToAMD64.asm \
     288        VMMSwitcher/PAEToAMD64.asm \
    286289        VMMSwitcher/AMD64Stub.asm
    287290
    288291VBoxVMM_LIBS = \
     
    372375
    373376 $$(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
    374377 ifeq ($(VBOX_LDR_FMT),lx)
     378        #       -e '/not-amd64/d'
    375379        $(SED) \
    376380                -e '/not-os2/d' \
    377                 -e '/not-amd64/d' \
     381                -e '/not-x86/d' \
    378382                -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' \
    379383                -e 's/[ \t]DATA[ \t]*/ /'  \
    380384                --output $@ $<
     
    556560
    557561 VMMR0_INCS      = \
    558562        include \
     563        VMMR0 \
    559564        $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,)
    560565
    561566 VMMR0_SOURCES   = \
  • \src\VBox\VMM/tools/Makefile.kmk

    diff -urN vbox-clean-bk\src\VBox\VMM/tools/Makefile.kmk vbox-clean\src\VBox\VMM/tools/Makefile.kmk
    old new  
    6464        $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \
    6565       $(VBOX_LIB_RUNTIME_STATIC)
    6666VBoxCpuReport_LIBS.solaris = kstat contract
    67 
     67VBoxCpuReport_LIBS.os2 = c_omf386
    6868VBoxCpuReport_LDFLAGS.darwin = \
    6969        -framework IOKit -framework CoreFoundation -framework CoreServices
    7070
  • \src\VBox\VMM/VMMR3/PDMDriver.cpp

    diff -urN vbox-clean-bk\src\VBox\VMM/VMMR3/PDMDriver.cpp vbox-clean\src\VBox\VMM/VMMR3/PDMDriver.cpp
    old new  
    15361536    return rc;
    15371537}
    15381538
     1539#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
    15391540
    15401541/** @interface_method_impl{PDMDRVHLP,pfnAsyncCompletionTemplateCreate} */
    15411542static DECLCALLBACK(int) pdmR3DrvHlp_AsyncCompletionTemplateCreate(PPDMDRVINS pDrvIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate,
     
    15531554    return rc;
    15541555}
    15551556
     1557#endif
    15561558
    15571559#ifdef VBOX_WITH_NETSHAPER
    15581560/** @interface_method_impl{PDMDRVHLP,pfnNetShaperAttach} */
     
    18161818    pdmR3DrvHlp_SetAsyncNotification,
    18171819    pdmR3DrvHlp_AsyncNotificationCompleted,
    18181820    pdmR3DrvHlp_ThreadCreate,
     1821#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
    18191822    pdmR3DrvHlp_AsyncCompletionTemplateCreate,
     1823#else
     1824    NULL,
     1825#endif
    18201826#ifdef VBOX_WITH_NETSHAPER
    18211827    pdmR3DrvHlp_NetShaperAttach,
    18221828    pdmR3DrvHlp_NetShaperDetach,
     1829#else
     1830    NULL,
     1831    NULL,
    18231832#endif /* VBOX_WITH_NETSHAPER */
    18241833    pdmR3DrvHlp_LdrGetRCInterfaceSymbols,
    18251834    pdmR3DrvHlp_LdrGetR0InterfaceSymbols,
  • \src\VBox\VMM/VMMR3/VMMSwitcher.cpp

    diff -urN vbox-clean-bk\src\VBox\VMM/VMMR3/VMMSwitcher.cpp vbox-clean\src\VBox\VMM/VMMR3/VMMSwitcher.cpp
    old new  
    102102static PVMMSWITCHERDEF g_apHmSwitchers[VMMSWITCHER_MAX] =
    103103{
    104104    NULL, /* invalid entry */
    105 #if HC_ARCH_BITS == 32 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     105//// ??? #if HC_ARCH_BITS == 32 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     106#if HC_ARCH_BITS == 32 && defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    106107    NULL,   //&vmmR3Switcher32BitTo32Bit_Def,
    107108    NULL,   //&vmmR3Switcher32BitToPAE_Def,
    108109    &vmmR3Switcher32BitToAMD64_Def,
  • \src\VBox\VMM/VMMRC/VMMRC.def

    diff -urN vbox-clean-bk\src\VBox\VMM/VMMRC/VMMRC.def vbox-clean\src\VBox\VMM/VMMRC/VMMRC.def
    old new  
    9393    RTAssertMsg1Weak
    9494    RTAssertMsg2Weak
    9595    RTAssertShouldPanic
    96     RTLogDefaultInstance
     96;    RTLogDefaultInstance ; (doubly defined)
    9797    RTTimeNanoTSLegacySyncInvarNoDelta
    9898    RTTimeNanoTSLegacySyncInvarWithDelta
    9999    RTTimeNanoTSLegacyAsync