VirtualBox

Changeset 24287 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 3, 2009 12:34:11 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54273
Message:

Made the common parts of the OS/2 additions build again.

Location:
trunk/src/VBox
Files:
9 edited

Legend:

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

    r23452 r24287  
    2424
    2525
    26 if1of ($(KBUILD_TARGET), \
    27         freebsd \
    28         $(if $(defined VBOX_WITH_OS2_ADDITIONS),os2,) \
    29         $(if $(defined VBOX_WITH_ADDITION_DRIVERS),linux,) \
    30         solaris)
     26if1of ($(KBUILD_TARGET), freebsd $(if $(defined VBOX_WITH_ADDITION_DRIVERS),linux,) os2 solaris)
    3127 #
    3228 # VBoxGuest - The Guest Additions Driver (mixed case).
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-os2.cpp

    r21376 r24287  
    651651
    652652
     653void VBoxGuestNativeISRMousePollEvent(PVBOXGUESTDEVEXT pDevExt)
     654{
     655    /* No polling on OS/2 */
     656    NOREF(pDevExt);
     657}
     658
     659
    653660#ifdef DEBUG_READ /** @todo figure out this one once and for all... */
    654661
  • trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp

    r23612 r24287  
    143143
    144144# ifdef RT_OS_OS2
     145#  include <VBox/VBoxGuest.h> /* for VBOXGUESTOS2IDCCONNECT */
    145146RT_C_DECLS_BEGIN
    146147/*
  • trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk

    r22744 r24287  
    2222SUB_DEPTH = ../../../../..
    2323include $(KBUILD_PATH)/subheader.kmk
    24 if "$(KBUILD_HOST)" != "os2" || defined(VBOX_WITH_OS2_ADDITIONS)
    2524
    2625#
     
    9998        $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
    10099
    101 endif # os2 || with os2 additions
    102100include $(KBUILD_PATH)/subfooter.kmk
    103101
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r23655 r24287  
    237237 #endif /* TARGET_NT4 */
    238238#elif defined(RT_OS_FREEBSD)
    239         /* TODO: Port me */
     239        /** @todo FreeBSD: Port logged on user info retrival. */
     240#elif defined(RT_OS_OS2)
     241        /** @todo OS/2: Port logged on (LAN/local/whatever) user info retrival. */
    240242#else
    241243        utmp* ut_user;
     
    383385                return -1;
    384386            }
    385  #if defined(RT_OS_SOLARIS)  || defined(RT_OS_FREEBSD)
     387 #if defined(RT_OS_FREEBSD) || defined(RT_OS_OS2) || defined(RT_OS_SOLARIS)
    386388            pAddress = (sockaddr_in *)&ifrequest[i].ifr_addr;
    387389 #else
  • trunk/src/VBox/Runtime/r0drv/os2/memuserkernel-r0drv-os2.cpp

    r21284 r24287  
    4141RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t cb)
    4242{
    43     int rc = KernCopyIn(pvDst, (const user_addr_t)R3PtrSrc, cb);
     43    int rc = KernCopyIn(pvDst, (void *)R3PtrSrc, cb);
    4444    if (RT_LIKELY(rc == 0))
    4545        return VINF_SUCCESS;
     
    5050RTR0DECL(int) RTR0MemUserCopyTo(RTR3PTR R3PtrDst, void const *pvSrc, size_t cb)
    5151{
    52     int rc = KernCopyOut(R3PtrDst, pvSrc, cb);
     52    int rc = KernCopyOut((void *)R3PtrDst, pvSrc, cb);
    5353    if (RT_LIKELY(rc == 0))
    5454        return VINF_SUCCESS;
     
    6868
    6969RTR0DECL(bool) RTR0MemKernelIsValidAddr(void *pv)
    70 {
     70{                                   
    7171    /** @todo this is all wrong, see RTR0MemUserIsValidAddr. */
    72     return R3Ptr >= UINT32_C(0x20000000); /* 512MB */
     72    return (uintptr_t)pv >= UINT32_C(0x20000000); /* 512MB */
    7373}
    7474
  • trunk/src/VBox/Runtime/r0drv/os2/thread-r0drv-os2.cpp

    r22151 r24287  
    173173    AssertReturn(rc == 0, true);
    174174
    175     return cInterruptLevel > 0;
     175    return u.cInterruptLevel > 0;
    176176}
    177177
  • trunk/src/VBox/Runtime/r3/fs.cpp

    r24006 r24287  
    3737# include <sys/time.h>
    3838# include <sys/param.h>
     39# ifndef DEV_BSIZE
     40#  include <sys/stat.h>
     41#  define DEV_BSIZE S_BLKSIZE /** @todo bird: add DEV_BSIZE to sys/param.h on OS/2. */
     42# endif
    3943#endif
    4044
  • trunk/src/VBox/Runtime/r3/init.cpp

    r23919 r24287  
    159159
    160160#ifdef RT_OS_OS2
     161/** Fork completion callback for OS/2.  Only called in the child. */
     162static void rtR3ForkOs2ChildCompletionCallback(void *pvArg, int rc, __LIBC_FORKCTX enmCtx)
     163{
     164    Assert(enmCtx == __LIBC_FORK_CTX_CHILD); NOREF(enmCtx);
     165    NOREF(pvArg);
     166
     167    if (!rc)
     168        rtR3ForkChildCallback();
     169}
     170
    161171/** Low-level fork callback for OS/2.  */
    162172int rtR3ForkOs2Child(__LIBC_PFORKHANDLE pForkHandle, __LIBC_FORKOP enmOperation)
    163173{
    164     if (enmOperation == __LIBC_FORK_STAGE_COMPLETION_CHILD)
    165         rtR3ForkChildCallback();
     174    if (enmOperation == __LIBC_FORK_OP_EXEC_CHILD)
     175        return pForkHandle->pfnCompletionCallback(pForkHandle, rtR3ForkOs2ChildCompletionCallback, NULL, __LIBC_FORK_CTX_CHILD);
    166176    return 0;
    167177}
Note: See TracChangeset for help on using the changeset viewer.

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