VirtualBox

Changeset 5042 in vbox for trunk/src


Ignore:
Timestamp:
Sep 26, 2007 9:52:01 AM (17 years ago)
Author:
vboxsync
Message:

Fixes to the Linux additions - use and export functions from the runtime

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r5002 r5042  
    3535        umoddi3.o \
    3636        qdivrem.o \
     37        assert.o \
    3738        logbackdoor.o \
    3839        logformat.o \
     
    109110KFLAGS   := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ \
    110111            -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBGL_VBOXGUEST -DVBOX_HGCM \
    111             -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE
     112            -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE -DIN_GUEST_R0
    112113ifeq ($(BUILD_TYPE),debug)
    113114KFLAGS   += -DDEBUG
  • trunk/src/VBox/Additions/linux/module/files_vboxadd

    r4997 r5042  
    6363    ${PATH_ROOT}/src/VBox/Runtime/VBox/strformat-vbox.cpp=>strformat-vbox.c \
    6464    ${PATH_ROOT}/src/VBox/Runtime/RTErrConvertToErrno.cpp=>RTErrConvertToErrno.c \
     65    ${PATH_ROOT}/src/VBox/Runtime/assert.cpp=>assert.c \
    6566    ${PATH_ROOT}/src/VBox/Runtime/logformat.cpp=>logformat.c \
    6667    ${PATH_ROOT}/src/VBox/Runtime/strformat.cpp=>strformat.c \
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r4998 r5042  
    3434#endif
    3535
    36 /* Runtime assert implementation for Linux ring 0 */
    37 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine,
    38                         const char *pszFile, const char *pszFunction)
    39 {
    40     Log(("!!Assertion Failed!!\n"
    41          "Expression: %s\n"
    42          "Location  : %s(%d) %s\n",
    43          pszExpr, pszFile, uLine, pszFunction));
    44 }
    45 EXPORT_SYMBOL(AssertMsg1);
    46 
    47 /* Runtime assert implementation for Linux ring 0 */
    48 RTDECL(void) AssertMsg2(const char *pszFormat, ...)
    49 {
    50     va_list ap;
    51     char    msg[256];
    52 
    53     va_start(ap, pszFormat);
    54     vsnprintf(msg, sizeof(msg) - 1, pszFormat, ap);
    55     msg[sizeof(msg) - 1] = '\0';
    56     Log(("%s", msg));
    57     va_end(ap);
    58 }
    59 EXPORT_SYMBOL(AssertMsg2);
    60 
     36/* This is called by our assert macros to find out whether we want
     37   to insert a breakpoint after the assertion. In kernel modules we
     38   do not of course. */
    6139RTDECL(bool)    RTAssertDoBreakpoint(void)
    6240{
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r5002 r5042  
    3131        r0drv/linux/alloc-r0drv-linux.o \
    3232        r0drv/linux/semaphore-r0drv-linux.o \
    33         RTErrConvertToErrno.o \
    3433        divdi3.o \
    3534        moddi3.o \
     
    108107endif
    109108KFLAGS   := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 \
    110             -DIN_SUP_R0 -DVBOX -DVBOX_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE
     109            -DIN_SUP_R0 -DVBOX -DVBOX_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE \
     110            -DIN_GUEST_R0
    111111ifeq ($(BUILD_TYPE),debug)
    112112KFLAGS   += -DDEBUG
  • trunk/src/VBox/Additions/linux/sharedfolders/files_vboxvfs

    r4822 r5042  
    6464    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/string.h=>r0drv/linux/string.h \
    6565    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h=>r0drv/linux/the-linux-kernel.h \
    66     ${PATH_ROOT}/src/VBox/Runtime/RTErrConvertToErrno.cpp=>RTErrConvertToErrno.c \
    6766    ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/Makefile.module=>Makefile \
    6867    ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/dirops.c=>dirops.c \
  • trunk/src/VBox/Runtime/RTErrConvertToErrno.cpp

    r5009 r5042  
    432432}
    433433
     434#if defined(RT_OS_LINUX) && defined(IN_MODULE)
     435EXPORT_SYMBOL(RTErrConvertToErrno);
     436#endif
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