VirtualBox

Ignore:
Timestamp:
Oct 15, 2008 10:46:08 PM (16 years ago)
Author:
vboxsync
Message:

Created assert-r0drv-linux.c (finally).

Location:
trunk/src/VBox/HostDrivers/Support/linux
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r13306 r13314  
    7777        r0drv/memobj-r0drv.o \
    7878        r0drv/mpnotification-r0drv.o \
     79        r0drv/linux/assert-r0drv-linux.o \
    7980        r0drv/linux/alloc-r0drv-linux.o \
    8081        r0drv/linux/initterm-r0drv-linux.o \
     
    9192        r0drv/linux/timer-r0drv-linux.o \
    9293        common/err/RTErrConvertFromErrno.o \
    93         generic/RTAssertShouldPanic-generic.o
    94 ifeq ($(BUILD_TARGET_ARCH),x86)
    95 OBJS += math/gcc/divdi3.o \
    96         math/gcc/moddi3.o \
    97         math/gcc/qdivrem.o \
    98         math/gcc/udivdi3.o
    99 endif
    100 ifeq ($(BUILD_TARGET_ARCH),amd64)
    101 OBJS += alloc/heapsimple.o
    102 endif
    103 
    104 ifeq ($(BUILD_TYPE),debug)
    105 OBJS += common/log/log.o \
     94        common/log/log.o \
    10695        common/log/logellipsis.o \
    10796        common/log/logrel.o \
     
    115104        common/string/strtonum.o \
    116105        r0drv/linux/RTLogWriteDebugger-r0drv-linux.o \
     106        generic/RTAssertShouldPanic-generic.o \
    117107        generic/RTLogWriteStdErr-stub-generic.o \
    118108        generic/RTLogWriteStdOut-stub-generic.o \
     
    122112ifeq ($(BUILD_TARGET_ARCH),x86)
    123113OBJS += math/gcc/divdi3.o \
     114        math/gcc/moddi3.o \
     115        math/gcc/qdivrem.o \
     116        math/gcc/udivdi3.o \
     117        math/gcc/divdi3.o \
    124118        math/gcc/umoddi3.o
    125119endif
    126 endif # debug
     120ifeq ($(BUILD_TARGET_ARCH),amd64)
     121OBJS += alloc/heapsimple.o
     122endif
    127123
    128124ifneq ($(MAKECMDGOALS),clean)
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r13306 r13314  
    944944}
    945945
    946 
    947 /** @todo move to IPRT! */
    948 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
    949 {
    950     printk("!!Assertion Failed!!\n"
    951              "Expression: %s\n"
    952              "Location  : %s(%d) %s\n",
    953              pszExpr, pszFile, uLine, pszFunction);
    954 }
    955 
    956 
    957 /** @todo move to IPRT! */
    958 RTDECL(void) AssertMsg2(const char *pszFormat, ...)
    959 {   /* forwarder. */
    960     va_list ap;
    961     char    msg[256];
    962 
    963     va_start(ap, pszFormat);
    964     vsnprintf(msg, sizeof(msg) - 1, pszFormat, ap);
    965     msg[sizeof(msg) - 1] = '\0';
    966     printk("%s", msg);
    967     va_end(ap);
    968 }
    969 
    970 
    971 /* GCC C++ hack. (shouldn't be necessary with the right exception flags...) */
    972 unsigned __gxx_personality_v0 = 0xcccccccc;
    973 
    974 
    975946module_init(VBoxDrvLinuxInit);
    976947module_exit(VBoxDrvLinuxUnload);
  • trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv

    r13306 r13314  
    9999    ${PATH_ROOT}/src/VBox/Runtime/r0drv/mpnotification-r0drv.c=>r0drv/mpnotification-r0drv.c \
    100100    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/RTLogWriteDebugger-r0drv-linux.c=>r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
     101    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/assert-r0drv-linux.c=>r0drv/linux/assert-r0drv-linux.c \
    101102    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c=>r0drv/linux/alloc-r0drv-linux.c \
    102103    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c=>r0drv/linux/initterm-r0drv-linux.c \
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