VirtualBox

Changeset 28303 in vbox


Ignore:
Timestamp:
Apr 14, 2010 1:17:56 PM (15 years ago)
Author:
vboxsync
Message:

Misc: made it possible to do: DEFS += RTMEM_WRAP_TO_EF_APIS RTALLOC_USE_EFENCE

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r28298 r28303  
    37693769# This mostly about zapping the VBOXR3EXE linker flags and libraries.
    37703770#
    3771 TEMPLATE_VBOXGUESTR3XF86MOD       = VBox Guest Program with C++ library dependencies
     3771TEMPLATE_VBOXGUESTR3XF86MOD       = VBox XFree86 Guest Module
    37723772TEMPLATE_VBOXGUESTR3XF86MOD_EXTENDS = VBOXGUESTR3EXE
    37733773TEMPLATE_VBOXGUESTR3XF86MOD_LIBS.$(KBUILD_TYPE)      = $(NO_SUCH_VARIABLE)
     
    37863786TEMPLATE_VBOXGUESTR3XF86MOD_LIBS  = \
    37873787        $(VBOX_LIB_VBGL_R3_XFREE86)
    3788 TEMPLATE_VBOXGUESTR3XF86MOD_DEFS  = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XF86MOD
     3788TEMPLATE_VBOXGUESTR3XF86MOD_DEFS  = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XF86MOD RTMEM_NO_WRAP_TO_EF_APIS
    37893789
    37903790
     
    37933793# This mostly about zapping unnecessary LIBS from VBOXGUESTR3DLL and adding some flags.
    37943794#
    3795 TEMPLATE_VBOXGUESTR3XORGMOD       = VBox Guest Program with C++ library dependencies
     3795TEMPLATE_VBOXGUESTR3XORGMOD       = VBox X.org Guest Module
    37963796TEMPLATE_VBOXGUESTR3XORGMOD_EXTENDS = VBOXGUESTR3DLL
    37973797TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$(KBUILD_TYPE)     = $(NO_SUCH_VARIABLE)
    37983798TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$(KBUILD_TARGET)   = $(NO_SUCH_VARIABLE)
    37993799TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS                  = $(TEMPLATE_VBOXGUESTR3DLL_CFLAGS) -std=c99
    3800 TEMPLATE_VBOXGUESTR3XORGMOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XORGMOD
     3800TEMPLATE_VBOXGUESTR3XORGMOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XORGMOD RTMEM_NO_WRAP_TO_EF_APIS
    38013801ifeq ($(KBUILD_TARGET_ARCH),amd64)
    38023802 TEMPLATE_VBOXGUESTR3XORGMOD_DEFS += _XSERVER64
  • trunk/include/iprt/mem.h

    r28298 r28303  
    452452 * Define RTMEM_WRAP_TO_EF_APIS to wrap RTMem APIs to RTMemEf APIs.
    453453 */
    454 #if defined(RTMEM_WRAP_TO_EF_APIS) && defined(IN_RING3)
     454#if defined(RTMEM_WRAP_TO_EF_APIS) && defined(IN_RING3) && !defined(RTMEM_NO_WRAP_TO_EF_APIS)
    455455# define RTMemTmpAlloc(cb)                  RTMemEfTmpAlloc((cb), RT_SRC_POS)
    456456# define RTMemTmpAllocZ(cb)                 RTMemEfTmpAllocZ((cb), RT_SRC_POS)
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk

    r27703 r28303  
    139139# C library is not available.
    140140#
     141## @todo We're quite probably using the wrong template here.
    141142VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
    142143VBoxGuestR3LibXFree86_DEFS     = \
    143         VBOX_WITH_HGCM VBOX_VBGLR3_XFREE86 \
     144        VBOX_WITH_HGCM \
     145        VBOX_VBGLR3_XFREE86 \
     146        RTMEM_NO_WRAP_TO_EF_APIS \
    144147        $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
    145148VBoxGuestR3LibXFree86_SOURCES  = \
     
    152155        VBoxGuestR3LibVideo.cpp \
    153156        VBoxGuestR3LibRuntimeXF86.cpp
    154 VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
    155157VBoxGuestR3LibXFree86_INCS     = \
    156158        $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \
     
    160162        $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
    161163
     164VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
    162165
    163166include $(KBUILD_PATH)/subfooter.kmk
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibRuntimeXF86.cpp

    r27687 r28303  
    22/** @file
    33 * VBoxGuestR3Lib - Ring-3 Support Library for VirtualBox guest additions,
    4  *   implements the minimum of runtime functions needed for XFree86 driver
    5  *   code.
     4 *                  implements the minimum of runtime functions needed for
     5 *                  XFree86 driver code.
    66 */
    77
    88/*
    9  * Copyright (C) 2007-2009 Sun Microsystems, Inc.
     9 * Copyright (C) 2007-2010 Sun Microsystems, Inc.
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4646}
    4747
     48/* This is risky as it restricts call to the ANSI format type specifiers. */
    4849RTDECL(size_t) RTStrPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...)
    4950{
     
    140141    xfree(pv);
    141142}
     143
  • trunk/src/VBox/Runtime/Makefile.kmk

    r28271 r28303  
    879879RuntimeGuestR3Mini_INCS.$(KBUILD_HOST)      := $(RuntimeR3_INCS.$(KBUILD_HOST))
    880880RuntimeGuestR3Mini_SOURCES = \
     881        common/alloc/alloc.cpp \
    881882        common/err/errmsg.cpp \
    882883        common/err/errmsgxpcom.cpp \
     
    927928        common/string/utf-8-case.cpp \
    928929        common/string/utf-16.cpp \
     930        common/table/avlpv.cpp \
    929931        generic/pathhost-generic.cpp \
    930932        generic/RTAssertShouldPanic-generic.cpp \
    931933        r3/alloc.cpp \
     934        r3/alloc-ef.cpp \
    932935        r3/fileio.cpp \
    933936        r3/fs.cpp
    934937RuntimeGuestR3Mini_SOURCES.freebsd = \
     938        r3/posix/alloc-posix.cpp \
    935939        r3/posix/env-posix.cpp \
    936940        r3/posix/fileio-posix.cpp \
     
    938942        r3/posix/utf8-posix.cpp
    939943RuntimeGuestR3Mini_SOURCES.linux = \
     944        r3/posix/alloc-posix.cpp \
    940945        r3/posix/env-posix.cpp \
    941946        r3/posix/fileio-posix.cpp \
     
    943948        r3/posix/utf8-posix.cpp
    944949RuntimeGuestR3Mini_SOURCES.solaris = \
     950        r3/posix/alloc-posix.cpp \
    945951        r3/posix/env-posix.cpp \
    946952        r3/posix/fileio-posix.cpp \
     
    948954        r3/posix/utf8-posix.cpp
    949955RuntimeGuestR3Mini_SOURCES.win = \
     956        r3/win/alloc-win.cpp \
    950957        r3/win/fileio-win.cpp \
    951958        r3/win/path-win.cpp \
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