VirtualBox

Changeset 3621 in vbox for trunk/src


Ignore:
Timestamp:
Jul 16, 2007 2:24:37 AM (18 years ago)
Author:
vboxsync
Message:

FreeBSD kernel module (at the hello world stage).

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r3542 r3621  
    3232endif
    3333ifdef VBOX_WITH_VBOXDRV
    34 SYSMODS.darwin += VBoxDrv
    35 SYSMODS.linux  += vboxdrv
    36 SYSMODS.win    += VBoxDrv
    37 SYSMODS.os2    += VBoxDrv
     34SYSMODS.darwin  += VBoxDrv
     35SYSMODS.freebsd += vboxdrv
     36SYSMODS.linux   += vboxdrv
     37SYSMODS.win     += VBoxDrv
     38SYSMODS.os2     += VBoxDrv
    3839endif
    3940
     
    142143
    143144#
    144 # vboxdrv.ko - The Linux Kernel Module.
     145# vboxdrv.ko - The Linux Kernel Module (syntax only).
    145146#
    146147ifeq ($(BUILD_TARGET),linux)
     
    195196        darwin/load.sh
    196197
    197 endif
     198endif # darwin
    198199
    199200
     
    229230endif
    230231
     232
     233#
     234# vboxdrv.ko - The FreeBSD Kernel Module.
     235#
     236ifeq ($(BUILD_TARGET),freebsd)
     237vboxdrv_TEMPLATE      = VBOXR0DRV
     238vboxdrv_DEFS          = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE
     239vboxdrv_INCS         := $(PATH_SUB_CURRENT)
     240vboxdrv_LIBS          = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
     241vboxdrv_SOURCES       = \
     242        $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c
     243#       SUPDRVShared.c
     244endif # freebsd
     245
     246
    231247include $(PATH_KBUILD)/subfooter.kmk
    232248
  • trunk/src/VBox/HostDrivers/Support/SUPDRV.h

    r3537 r3621  
    9292#elif defined(__OS2__)
    9393
     94#elif defined(__FREEBSD__)
     95#   include <sys/libkern.h>
     96#   include <iprt/string.h>
     97
    9498#else
    9599#   error "unsupported OS."
     
    164168/* No log API in OS/2 only COM port. */
    165169# define OSDBGPRINT(a) SUPR0Printf a
     170
     171
     172/*
     173 * FreeBSD
     174 */
     175#elif defined(__FREEBSD__)
     176
     177/* No log API in OS/2 only COM port. */
     178# define OSDBGPRINT(a) printf a
    166179
    167180
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