Skip to content

Commit

Permalink
Additional DragonFly BSD support.
Browse files Browse the repository at this point in the history
Makefiles and environment defines.
  • Loading branch information
acpibob committed Apr 10, 2015
1 parent 8a3c1df commit 3e93431
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions generate/unix/Makefile.config
Expand Up @@ -55,6 +55,10 @@ ifeq ($(UNAME_S), Darwin) # Mac OS X
HOST = _APPLE
endif

ifeq ($(UNAME_S), DragonFly)
HOST = _DragonFly
endif

ifeq ($(UNAME_S), FreeBSD)
HOST = _FreeBSD
endif
Expand Down
4 changes: 4 additions & 0 deletions generate/unix/acpidump/Makefile
Expand Up @@ -51,6 +51,10 @@ OBJECTS = \
#
# Per-host interfaces
#
ifeq ($(HOST), _DragonFly)
HOST_FAMILY = BSD
endif

ifeq ($(HOST), _FreeBSD)
HOST_FAMILY = BSD
endif
Expand Down
3 changes: 3 additions & 0 deletions source/include/platform/acenv.h
Expand Up @@ -247,6 +247,9 @@
#elif defined(_APPLE) || defined(__APPLE__)
#include "acmacosx.h"

#elif defined(__DragonFly__)
#include "acdragonfly.h"

#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include "acfreebsd.h"

Expand Down
3 changes: 3 additions & 0 deletions source/include/platform/acenvex.h
Expand Up @@ -128,6 +128,9 @@
#if defined(_LINUX) || defined(__linux__)
#include "aclinuxex.h"

#elif defined(__DragonFly__)
#include "acdragonflyex.h"

#endif

/*! [End] no source code translation !*/
Expand Down
2 changes: 1 addition & 1 deletion source/os_specific/service_layers/osbsdtbl.c
Expand Up @@ -152,7 +152,7 @@ OslGetTableViaRoot (


/* Hints for RSDP */
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
#define SYSTEM_KENV "hint.acpi.0.rsdp"
#define SYSTEM_SYSCTL "machdep.acpi_root"
#elif defined(__NetBSD__)
Expand Down

0 comments on commit 3e93431

Please sign in to comment.