VirtualBox

Ignore:
Timestamp:
Sep 26, 2007 9:52:01 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24845
Message:

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

Location:
trunk/src/VBox/Additions/linux/module
Files:
3 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{
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