aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2000-04-22 15:13:06 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2000-04-22 15:13:06 +0000
commit4505fec89ee1d4cea046e2ee08897cb08ee513b2 (patch)
treef4a9a37d40d9cea41cf4bcf01f32241a43a365b6
parent4b38c2c0ac5b025eb51482a7f01899e262ee4981 (diff)
Notes
-rw-r--r--sys/kern/posix4_mib.c17
-rw-r--r--sys/posix4/posix4_mib.c17
2 files changed, 34 insertions, 0 deletions
diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c
index ba4a853ea66d4..09af27d0f6231 100644
--- a/sys/kern/posix4_mib.c
+++ b/sys/kern/posix4_mib.c
@@ -29,6 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $FreeBSD$
*/
#include <sys/param.h>
@@ -96,3 +97,19 @@ void p31b_setcfg(int num, int value)
if (num >= 1 && num < CTL_P1003_1B_MAXID)
facility[num - 1] = value;
}
+
+/*
+ * Turn on indications for standard (non-configurable) kernel features.
+ */
+static void
+p31b_set_standard(void *dummy)
+{
+ /* ??? p31b_setcfg(CTL_P1003_1B_FSYNC, 1); */
+ p31b_setcfg(CTL_P1003_1B_MAPPED_FILES, 1);
+ p31b_setcfg(CTL_P1003_1B_SHARED_MEMORY_OBJECTS, 1);
+ p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE);
+}
+
+SYSINIT(p31b_set_standard, SI_SUB_P1003_1B, SI_ORDER_ANY, p31b_set_standard,
+ 0);
+
diff --git a/sys/posix4/posix4_mib.c b/sys/posix4/posix4_mib.c
index ba4a853ea66d4..09af27d0f6231 100644
--- a/sys/posix4/posix4_mib.c
+++ b/sys/posix4/posix4_mib.c
@@ -29,6 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $FreeBSD$
*/
#include <sys/param.h>
@@ -96,3 +97,19 @@ void p31b_setcfg(int num, int value)
if (num >= 1 && num < CTL_P1003_1B_MAXID)
facility[num - 1] = value;
}
+
+/*
+ * Turn on indications for standard (non-configurable) kernel features.
+ */
+static void
+p31b_set_standard(void *dummy)
+{
+ /* ??? p31b_setcfg(CTL_P1003_1B_FSYNC, 1); */
+ p31b_setcfg(CTL_P1003_1B_MAPPED_FILES, 1);
+ p31b_setcfg(CTL_P1003_1B_SHARED_MEMORY_OBJECTS, 1);
+ p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE);
+}
+
+SYSINIT(p31b_set_standard, SI_SUB_P1003_1B, SI_ORDER_ANY, p31b_set_standard,
+ 0);
+