Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/include Add definitions for mtrr syscalls.



details:   https://anonhg.NetBSD.org/src/rev/bb9bcb057055
branches:  trunk
changeset: 514762:bb9bcb057055
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Sep 10 10:10:57 2001 +0000

description:
Add definitions for mtrr syscalls.

diffstat:

 sys/arch/i386/include/sysarch.h |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r c2ea3d35d15a -r bb9bcb057055 sys/arch/i386/include/sysarch.h
--- a/sys/arch/i386/include/sysarch.h   Mon Sep 10 10:10:33 2001 +0000
+++ b/sys/arch/i386/include/sysarch.h   Mon Sep 10 10:10:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysarch.h,v 1.10 2000/09/13 04:47:01 thorpej Exp $     */
+/*     $NetBSD: sysarch.h,v 1.11 2001/09/10 10:10:57 fvdl Exp $        */
 
 #ifndef _I386_SYSARCH_H_
 #define _I386_SYSARCH_H_
@@ -15,6 +15,8 @@
 #define        I386_PMC_INFO   8
 #define        I386_PMC_STARTSTOP 9
 #define        I386_PMC_READ   10
+#define I386_GET_MTRR  11
+#define I386_SET_MTRR  12
 
 struct i386_get_ldt_args {
        int start;
@@ -28,6 +30,16 @@
        int num;
 };
 
+struct i386_get_mtrr_args {
+       struct mtrr *mtrrp;
+       int *n;
+};
+
+struct i386_set_mtrr_args {
+       struct mtrr *mtrrp;
+       int *n;
+};
+
 struct i386_iopl_args {
        int iopl;
 };
@@ -73,6 +85,8 @@
        u_int64_t time;
 };
 
+struct mtrr;
+
 #ifndef _KERNEL
 int i386_get_ldt __P((int, union descriptor *, int));
 int i386_set_ldt __P((int, union descriptor *, int));
@@ -82,6 +96,8 @@
 int i386_pmc_info __P((struct i386_pmc_info_args *));
 int i386_pmc_startstop __P((struct i386_pmc_startstop_args *));
 int i386_pmc_read __P((struct i386_pmc_read_args *));
+int i386_set_mtrr __P((struct mtrr *, int *));
+int i386_get_mtrr __P((struct mtrr *, int *));
 int sysarch __P((int, void *));
 #endif
 



Home | Main Index | Thread Index | Old Index