summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-08-19 15:18:32 +0000
committerbapt <bapt@FreeBSD.org>2015-08-19 15:18:32 +0000
commit95d9fae2fd8e37faa32c935f500ec9788e0ef8d9 (patch)
tree2f5dc6b7b99d3dda9d904a45724017ae659fdd95 /sys/amd64
parentbfcdce43c1ae46c3879a2420eb16a57fd40a9fc2 (diff)
downloadFreeBSD-src-95d9fae2fd8e37faa32c935f500ec9788e0ef8d9.zip
FreeBSD-src-95d9fae2fd8e37faa32c935f500ec9788e0ef8d9.tar.gz
Add a kern.features.cloudabi64 entry when the module is loaded to helps the
userland to be able to test is cloudabi64 is supported or not Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D3430
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/cloudabi64/cloudabi64_sysvec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/cloudabi64/cloudabi64_sysvec.c b/sys/amd64/cloudabi64/cloudabi64_sysvec.c
index 36edfc5..89540ed 100644
--- a/sys/amd64/cloudabi64/cloudabi64_sysvec.c
+++ b/sys/amd64/cloudabi64/cloudabi64_sysvec.c
@@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
#include <sys/module.h>
#include <sys/proc.h>
#include <sys/smp.h>
+#include <sys/sysctl.h>
#include <sys/sysent.h>
#include <sys/systm.h>
@@ -272,3 +273,4 @@ static moduledata_t cloudabi64_module = {
DECLARE_MODULE_TIED(cloudabi64, cloudabi64_module, SI_SUB_EXEC, SI_ORDER_ANY);
MODULE_DEPEND(cloudabi64, cloudabi, 1, 1, 1);
+FEATURE(cloudabi64, "CloudABI 64bit support");
OpenPOWER on IntegriCloud