VirtualBox

Changeset 75552 in vbox


Ignore:
Timestamp:
Nov 18, 2018 4:55:03 AM (6 years ago)
Author:
vboxsync
Message:

VBoxGuest/os2: fixes

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk

    r70350 r75552  
    138138  # The library order is crucial, so a bit of trickery is necessary.
    139139  # A library is used to make sure that VBoxGuestA-os2.asm is first in the link. (temporary hack?)
    140   VBoxGuest_SOURCES       = \
    141         VBoxGuestA-os2.asm \
    142         VBoxGuest-os2.def
    143   #VBoxGuest_LDFLAGS       = -s -t -v
    144   VBoxGuest_LIBS          = \
    145         $(TARGET_VBoxGuestLibOs2Hack) \
    146         $(VBOX_LIB_VBGL_R0BASE) \
    147         $(VBOX_LIB_IPRT_GUEST_R0) \
    148         $(VBOX_GCC_LIBGCC) \
    149         end
    150   ## When debugging init with kDrvTest:
    151   #VBoxGuest_NAME          = VBoxGst
    152 
    153   # see
    154   LIBRARIES += VBoxGuestLibOs2Hack
    155   VBoxGuestLibOs2Hack_TEMPLATE = VBOXGUESTR0LIB
    156   VBoxGuestLibOs2Hack_INSTTYPE = none
    157   VBoxGuestLibOs2Hack_DEFS = $(VBoxGuest_DEFS)
    158   VBoxGuestLibOs2Hack_INCS = \
    159         . \
    160         $(PATH_ROOT)/src/VBox/Runtime/include # for the os2ddk
    161   VBoxGuestLibOs2Hack_SOURCES = \
    162         VBoxGuest-os2.cpp \
    163         VBoxGuest.cpp
     140VBoxGuest_SOURCES        = \
     141        VBoxGuestA-os2.asm
     142  ifdef VBOX_USE_WATCOM_FOR_OS2
     143VBoxGuest_LIBS           = \
     144        $(VBoxGuestLibOs2Hack_1_TARGET) \
     145        $(VBOX_LIB_VBGL_R0BASE) \
     146        $(VBOX_LIB_IPRT_GUEST_R0) \
     147        $(PATH_IGCC)/lib/libend.lib
     148  else
     149VBoxGuest_SOURCES       += \
     150        VBoxGuest-os2.def
     151#VBoxGuest_LDFLAGS        = -s -t -v
     152VBoxGuest_LIBS           = \
     153        $(VBoxGuestLibOs2Hack_1_TARGET) \
     154        $(VBOX_LIB_VBGL_R0BASE) \
     155        $(VBOX_LIB_IPRT_GUEST_R0) \
     156        $(VBOX_GCC_LIBGCC) \
     157        end
     158  endif
     159## When debugging init with kDrvTest:
     160#VBoxGuest_NAME          = VBoxGst
     161
     162# See above.
     163LIBRARIES += VBoxGuestLibOs2Hack
     164VBoxGuestLibOs2Hack_TEMPLATE = VBOXGUESTR0LIB
     165VBoxGuestLibOs2Hack_INSTTYPE = none
     166VBoxGuestLibOs2Hack_DEFS = $(VBoxGuest_DEFS)
     167VBoxGuestLibOs2Hack_INCS = \
     168        . \
     169        $(PATH_ROOT)/src/VBox/Runtime/include # for the os2ddk
     170VBoxGuestLibOs2Hack_SOURCES = \
     171        VBoxGuest-os2.cpp \
     172        VBoxGuest.cpp
    164173 endif # OS/2
    165174
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-os2.cpp

    r70873 r75552  
    134134DECLASM(int) vgdrvOS2Init(const char *pszArgs)
    135135{
    136     Log(("vgdrvOS2Init: pszArgs='%s' MMIO=0x%RX32 IOPort=0x%RX16 Int=%#x Bus=%#x Dev=%#x Fun=%d\n",
    137          pszArgs, g_PhysMMIOBase, g_IOPortBase, g_bInterruptLine, g_bPciBusNo, g_bPciDevFunNo >> 3, g_bPciDevFunNo & 7));
     136    //Log(("vgdrvOS2Init: pszArgs='%s' MMIO=0x%RX32 IOPort=0x%RX16 Int=%#x Bus=%#x Dev=%#x Fun=%d\n",
     137    //     pszArgs, g_PhysMMIOBase, g_IOPortBase, g_bInterruptLine, g_bPciBusNo, g_bPciDevFunNo >> 3, g_bPciDevFunNo & 7));
    138138
    139139    /*
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestA-os2.asm

    r69500 r75552  
    186186%define DevHlp_VirtToLin        05bh
    187187%define DevHlp_SAVE_MESSAGE     03dh
    188 %define DevHlp_EIO              031h
     188%define DevHlp_EOI              031h
    189189%define DevHlp_SetIRQ           01bh
    190190%define DevHlp_PhysToVirt       015h
     
    10621062.our:
    10631063    mov     al, [NAME(g_bInterruptLine)]
    1064     mov     dl, DevHlp_EIO
     1064    mov     dl, DevHlp_EOI
    10651065    call far [NAME(g_fpfnDevHlp)]
    10661066
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette