Date: Fri, 24 Oct 2014 21:08:37 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273607 - head/sys/dev/acpica Message-ID: <201410242108.s9OL8bgt047525@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410242108.s9OL8bgt047525>