Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libarch/i386 Add frontend for i386_mtrr_get/set system c...
details: https://anonhg.NetBSD.org/src/rev/2d6670358942
branches: trunk
changeset: 514771:2d6670358942
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Sep 10 10:20:32 2001 +0000
description:
Add frontend for i386_mtrr_get/set system calls.
diffstat:
lib/libarch/i386/Makefile.inc | 4 ++--
lib/libarch/i386/i386_mtrr.c | 26 ++++++++++++++++++++++++++
lib/libarch/i386/shlib_version | 4 ++--
3 files changed, 30 insertions(+), 4 deletions(-)
diffs (55 lines):
diff -r 778edcaee077 -r 2d6670358942 lib/libarch/i386/Makefile.inc
--- a/lib/libarch/i386/Makefile.inc Mon Sep 10 10:19:12 2001 +0000
+++ b/lib/libarch/i386/Makefile.inc Mon Sep 10 10:20:32 2001 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.inc,v 1.9 2000/09/13 04:52:12 thorpej Exp $
+# $NetBSD: Makefile.inc,v 1.10 2001/09/10 10:20:32 fvdl Exp $
.if (${MACHINE_ARCH} == "i386")
SRCS+= i386_get_ldt.c i386_set_ldt.c \
i386_iopl.c i386_get_ioperm.c i386_set_ioperm.c \
- i386_vm86.c i386_pmc.c
+ i386_vm86.c i386_pmc.c i386_mtrr.c
.endif
MAN+= i386_get_ldt.2 \
diff -r 778edcaee077 -r 2d6670358942 lib/libarch/i386/i386_mtrr.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libarch/i386/i386_mtrr.c Mon Sep 10 10:20:32 2001 +0000
@@ -0,0 +1,26 @@
+/* $NetBSD: i386_mtrr.c,v 1.1 2001/09/10 10:20:32 fvdl Exp $ */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
+#include <machine/sysarch.h>
+
+int
+i386_get_mtrr(struct mtrr *mtrrp, int *n)
+{
+ struct i386_get_mtrr_args a;
+
+ a.mtrrp = mtrrp;
+ a.n = n;
+ return sysarch(I386_GET_MTRR, (void *)&a);
+}
+
+int
+i386_set_mtrr(struct mtrr *mtrrp, int *n)
+{
+ struct i386_set_mtrr_args a;
+
+ a.mtrrp = mtrrp;
+ a.n = n;
+ return sysarch(I386_SET_MTRR, (void *)&a);
+}
diff -r 778edcaee077 -r 2d6670358942 lib/libarch/i386/shlib_version
--- a/lib/libarch/i386/shlib_version Mon Sep 10 10:19:12 2001 +0000
+++ b/lib/libarch/i386/shlib_version Mon Sep 10 10:20:32 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shlib_version,v 1.3 2000/09/13 04:52:12 thorpej Exp $
+# $NetBSD: shlib_version,v 1.4 2001/09/10 10:20:32 fvdl Exp $
#
major=0
-minor=3
+minor=4
Home |
Main Index |
Thread Index |
Old Index