VirtualBox

Changeset 31829 in vbox for trunk


Ignore:
Timestamp:
Aug 20, 2010 11:19:37 PM (14 years ago)
Author:
vboxsync
Message:

IPRT,SUP: Moved the strformat*.cpp completely out of RuntimeR0 on all platforms so that %RT[pgmpage] will work in ring-0. Minor SUPDrv IOC interface version increment.

Location:
trunk/src/VBox
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r31157 r31829  
    4747#include <iprt/thread.h>
    4848#include <iprt/uuid.h>
    49 #if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_WINDOWS)
    50 # include <iprt/net.h>
    51 # include <iprt/crc32.h>
    52 # include <iprt/string.h>
     49#include <iprt/net.h>
     50#include <iprt/crc32.h>
     51#include <iprt/string.h>
     52#if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)
    5353# include <iprt/rand.h>
    5454# include <iprt/path.h>
     
    300300    { "RTAssertSetMayPanic",                    (void *)RTAssertSetMayPanic },
    301301    { "RTAssertAreQuiet",                       (void *)RTAssertAreQuiet },
    302 #ifdef RT_OS_WINDOWS
    303     /* We need to include more of our runtime to prevent the dynamically linked R0 modules to get too large. */
     302    { "RTStrFormat",                            (void *)RTStrFormat },
     303    { "RTStrFormatNumber",                      (void *)RTStrFormatNumber },
     304    { "RTStrFormatTypeDeregister",              (void *)RTStrFormatTypeDeregister },
     305    { "RTStrFormatTypeRegister",                (void *)RTStrFormatTypeRegister },
     306    { "RTStrFormatTypeSetUser",                 (void *)RTStrFormatTypeSetUser },
     307    { "RTStrFormatV",                           (void *)RTStrFormatV },
     308    { "RTStrPrintf",                            (void *)RTStrPrintf },
     309    { "RTStrPrintfEx",                          (void *)RTStrPrintfEx },
     310    { "RTStrPrintfExV",                         (void *)RTStrPrintfExV },
     311    { "RTStrPrintfV",                           (void *)RTStrPrintfV },
     312    { "RTHandleTableAllocWithCtx",              (void *)RTHandleTableAllocWithCtx },
     313    { "RTHandleTableCreate",                    (void *)RTHandleTableCreate },
     314    { "RTHandleTableCreateEx",                  (void *)RTHandleTableCreateEx },
     315    { "RTHandleTableDestroy",                   (void *)RTHandleTableDestroy },
     316    { "RTHandleTableFreeWithCtx",               (void *)RTHandleTableFreeWithCtx },
     317    { "RTHandleTableLookupWithCtx",             (void *)RTHandleTableLookupWithCtx },
    304318    { "RTNetIPv4AddDataChecksum",               (void *)RTNetIPv4AddDataChecksum },
    305319    { "RTNetIPv4AddTCPChecksum",                (void *)RTNetIPv4AddTCPChecksum },
     
    322336    { "RTNetTCPChecksum",                       (void *)RTNetTCPChecksum },
    323337    { "RTNetUDPChecksum",                       (void *)RTNetUDPChecksum },
    324     { "RTStrFormat",                            (void *)RTStrFormat },
    325     { "RTStrFormatNumber",                      (void *)RTStrFormatNumber },
    326     { "RTStrFormatTypeDeregister",              (void *)RTStrFormatTypeDeregister },
    327     { "RTStrFormatTypeRegister",                (void *)RTStrFormatTypeRegister },
    328     { "RTStrFormatTypeSetUser",                 (void *)RTStrFormatTypeSetUser },
    329     { "RTStrFormatV",                           (void *)RTStrFormatV },
    330     { "RTStrPrintf",                            (void *)RTStrPrintf },
    331     { "RTStrPrintfEx",                          (void *)RTStrPrintfEx },
    332     { "RTStrPrintfExV",                         (void *)RTStrPrintfExV },
    333     { "RTStrPrintfV",                           (void *)RTStrPrintfV },
    334338    { "RTCrc32",                                (void *)RTCrc32 },
    335339    { "RTCrc32Finish",                          (void *)RTCrc32Finish },
    336340    { "RTCrc32Process",                         (void *)RTCrc32Process },
    337341    { "RTCrc32Start",                           (void *)RTCrc32Start },
    338     { "RTHandleTableAllocWithCtx",              (void *)RTHandleTableAllocWithCtx },
    339     { "RTHandleTableCreate",                    (void *)RTHandleTableCreate },
    340     { "RTHandleTableCreateEx",                  (void *)RTHandleTableCreateEx },
    341     { "RTHandleTableDestroy",                   (void *)RTHandleTableDestroy },
    342     { "RTHandleTableFreeWithCtx",               (void *)RTHandleTableFreeWithCtx },
    343     { "RTHandleTableLookupWithCtx",             (void *)RTHandleTableLookupWithCtx },
    344 #endif
    345342};
    346343
     
    353350{
    354351    /* VBoxNetFlt */
    355     (PFNRT)RTCrc32,
    356352    (PFNRT)RTErrConvertFromErrno,
    357     (PFNRT)RTNetIPv4IsHdrValid,
    358     (PFNRT)RTNetIPv4TCPChecksum,
    359     (PFNRT)RTNetIPv4UDPChecksum,
    360353    (PFNRT)RTUuidCompare,
    361354    (PFNRT)RTUuidCompareStr,
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r31157 r31829  
    193193 *          - Nothing.
    194194 */
    195 #define SUPDRV_IOC_VERSION                              0x00150000
     195#define SUPDRV_IOC_VERSION                              0x00150001
    196196
    197197/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r31157 r31829  
    268268        strcpy(CookieReq.u.In.szMagic, SUPCOOKIE_MAGIC);
    269269        CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION;
    270         const uint32_t uMinVersion = /*(SUPDRV_IOC_VERSION & 0xffff0000) == 0x00150000
     270        const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x00150000
    271271                                   ?  0x00150001
    272                                    :*/ SUPDRV_IOC_VERSION & 0xffff0000;
     272                                   : SUPDRV_IOC_VERSION & 0xffff0000;
    273273        CookieReq.u.In.u32MinVersion = uMinVersion;
    274274        rc = suplibOsIOCtl(&g_supLibData, SUP_IOCTL_COOKIE, &CookieReq, SUP_IOCTL_COOKIE_SIZE);
  • trunk/src/VBox/HostDrivers/Support/freebsd/Makefile

    r28800 r31829  
    105105SRCS += \
    106106        crc32.c \
    107         ipv4.c
     107        ipv4.c \
     108        ipv6.c
    108109
    109110.PATH:  ${.CURDIR}/common/table
  • trunk/src/VBox/HostDrivers/Support/freebsd/files_vboxdrv

    r29250 r31829  
    3636    ${PATH_ROOT}/include/iprt/cdefs.h=>include/iprt/cdefs.h \
    3737    ${PATH_ROOT}/include/iprt/cpuset.h=>include/iprt/cpuset.h \
     38    ${PATH_ROOT}/include/iprt/crc.h=>include/iprt/crc.h \
    3839    ${PATH_ROOT}/include/iprt/ctype.h=>include/iprt/ctype.h \
    3940    ${PATH_ROOT}/include/iprt/err.h=>include/iprt/err.h \
     
    119120    ${PATH_ROOT}/src/VBox/Runtime/common/checksum/crc32.cpp=>common/checksum/crc32.c \
    120121    ${PATH_ROOT}/src/VBox/Runtime/common/checksum/ipv4.cpp=>common/checksum/ipv4.c \
     122    ${PATH_ROOT}/src/VBox/Runtime/common/checksum/ipv6.cpp=>common/checksum/ipv6.c \
    121123    ${PATH_ROOT}/src/VBox/Runtime/common/table/avlpv.cpp=>common/table/avlpv.c \
    122124    ${PATH_ROOT}/src/VBox/Runtime/common/table/avl_Base.cpp.h=>common/table/avl_Base.cpp.h \
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r31245 r31829  
    66#
    77#
    8 # Copyright (C) 2006-2007 Oracle Corporation
     8# Copyright (C) 2006-2010 Oracle Corporation
    99#
    1010# This file is part of VirtualBox Open Source Edition (OSE), as
     
    9898        r0drv/generic/semspinmutex-r0drv-generic.o \
    9999        common/alloc/alloc.o \
     100        common/checksum/crc32.o \
    100101        common/checksum/ipv4.o \
    101102        common/checksum/ipv6.o \
  • trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv

    r31250 r31829  
    3535    ${PATH_ROOT}/include/iprt/cdefs.h=>include/iprt/cdefs.h \
    3636    ${PATH_ROOT}/include/iprt/cpuset.h=>include/iprt/cpuset.h \
     37    ${PATH_ROOT}/include/iprt/crc.h=>include/iprt/crc.h \
    3738    ${PATH_ROOT}/include/iprt/ctype.h=>include/iprt/ctype.h \
    3839    ${PATH_ROOT}/include/iprt/err.h=>include/iprt/err.h \
     
    8081    ${PATH_ROOT}/src/VBox/Runtime/common/alloc/alloc.cpp=>common/alloc/alloc.c \
    8182    ${PATH_ROOT}/src/VBox/Runtime/common/alloc/heapsimple.cpp=>common/alloc/heapsimple.c \
     83    ${PATH_ROOT}/src/VBox/Runtime/common/checksum/crc32.cpp=>common/checksum/crc32.c \
    8284    ${PATH_ROOT}/src/VBox/Runtime/common/checksum/ipv4.cpp=>common/checksum/ipv4.c \
    8385    ${PATH_ROOT}/src/VBox/Runtime/common/checksum/ipv6.cpp=>common/checksum/ipv6.c \
  • trunk/src/VBox/Runtime/Makefile.kmk

    r31252 r31829  
    12561256        $(RuntimeNoCrt_SOURCES)
    12571257
    1258 ifneq ($(KBUILD_TARGET),win)
    1259 RuntimeR0_SOURCES      += \
    1260         common/checksum/crc32.cpp \
    1261         common/checksum/crc64.cpp \
    1262         common/checksum/md5.cpp \
    1263         common/checksum/ipv4.cpp \
    1264         common/checksum/ipv6.cpp \
    1265         common/misc/handletable.cpp \
    1266         common/misc/handletablectx.cpp \
    1267         common/misc/handletablesimple.cpp \
    1268         common/string/strformat.cpp \
    1269         common/string/strformatrt.cpp \
    1270         common/string/strformattype.cpp \
    1271         common/string/strprintf.cpp
    1272 endif
    1273 
    12741258if1of ($(KBUILD_TARGET), darwin solaris freebsd)
    12751259RuntimeR0_SOURCES += \
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