svn commit: r273607 - head/sys/dev/acpica

Rui Paulo rpaulo at FreeBSD.org
Fri Oct 24 21:08:37 UTC 2014


Author: rpaulo
Date: Fri Oct 24 21:08:36 2014
New Revision: 273607
URL: https://svnweb.freebsd.org/changeset/base/273607

Log:
  Add a sysctl to control the HPET allow_write behaviour.
  
  Requested by:	kib

Modified:
  head/sys/dev/acpica/acpi_hpet.c

Modified: head/sys/dev/acpica/acpi_hpet.c
==============================================================================
--- head/sys/dev/acpica/acpi_hpet.c	Fri Oct 24 21:08:02 2014	(r273606)
+++ head/sys/dev/acpica/acpi_hpet.c	Fri Oct 24 21:08:36 2014	(r273607)
@@ -760,6 +760,11 @@ hpet_attach(device_t dev)
 		    OID_AUTO, "mmap_allow",
 		    CTLFLAG_RW, &sc->mmap_allow, 0,
 		    "Allow userland to memory map HPET");
+		SYSCTL_ADD_INT(device_get_sysctl_ctx(dev),
+		    SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
+		    OID_AUTO, "mmap_allow_write",
+		    CTLFLAG_RW, &sc->mmap_allow_write, 0,
+		    "Allow userland write to the HPET register space");
 	} else
 		device_printf(dev, "could not create /dev/hpet%d\n",
 		    device_get_unit(dev));


More information about the svn-src-head mailing list