Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86_64/include Add definitions for 32bit sysarch ca...
details: https://anonhg.NetBSD.org/src/rev/9c2ca400e52a
branches: trunk
changeset: 533711:9c2ca400e52a
user: fvdl <fvdl%NetBSD.org@localhost>
date: Sun Jul 07 23:27:00 2002 +0000
description:
Add definitions for 32bit sysarch calls.
diffstat:
sys/arch/x86_64/include/netbsd32_machdep.h | 20 +++++++++++++++++++-
sys/arch/x86_64/include/sysarch.h | 8 ++++++--
2 files changed, 25 insertions(+), 3 deletions(-)
diffs (56 lines):
diff -r 275d35f748e8 -r 9c2ca400e52a sys/arch/x86_64/include/netbsd32_machdep.h
--- a/sys/arch/x86_64/include/netbsd32_machdep.h Sun Jul 07 23:25:37 2002 +0000
+++ b/sys/arch/x86_64/include/netbsd32_machdep.h Sun Jul 07 23:27:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.h,v 1.3 2002/07/04 23:32:08 thorpej Exp $ */
+/* $NetBSD: netbsd32_machdep.h,v 1.4 2002/07/07 23:27:00 fvdl Exp $ */
#ifndef _MACHINE_NETBSD32_H_
#define _MACHINE_NETBSD32_H_
@@ -95,6 +95,24 @@
char __data[108];
};
+struct mtrr32 {
+ uint64_t base;
+ uint64_t len;
+ uint8_t type;
+ uint8_t __pad0[3];
+ int flags;
+ uint32_t owner;
+} __attribute__((packed));
+
+struct x86_64_get_mtrr_args32 {
+ uint32_t mtrrp;
+ uint32_t n;
+};
+
+struct x86_64_set_mtrr_args32 {
+ uint32_t mtrrp;
+ uint32_t n;
+};
struct exec_package;
void netbsd32_setregs(struct proc *p, struct exec_package *pack, u_long stack);
diff -r 275d35f748e8 -r 9c2ca400e52a sys/arch/x86_64/include/sysarch.h
--- a/sys/arch/x86_64/include/sysarch.h Sun Jul 07 23:25:37 2002 +0000
+++ b/sys/arch/x86_64/include/sysarch.h Sun Jul 07 23:27:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysarch.h,v 1.3 2002/07/04 10:49:33 fvdl Exp $ */
+/* $NetBSD: sysarch.h,v 1.4 2002/07/07 23:27:00 fvdl Exp $ */
#ifndef _X86_64_SYSARCH_H_
#define _X86_64_SYSARCH_H_
@@ -98,7 +98,11 @@
};
-#ifndef _KERNEL
+#ifdef _KERNEL
+int x86_64_iopl __P((struct proc *, void *, register_t *));
+int x86_64_get_mtrr __P((struct proc *, void *, register_t *));
+int x86_64_set_mtrr __P((struct proc *, void *, register_t *));
+#else
int x86_64_get_ldt __P((int, union descriptor *, int));
int x86_64_set_ldt __P((int, union descriptor *, int));
int x86_64_iopl __P((int));
Home |
Main Index |
Thread Index |
Old Index