Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/target Include <machine/mcontext.h> now it...
details: https://anonhg.NetBSD.org/src/rev/d600293a2566
branches: trunk
changeset: 322891:d600293a2566
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue May 22 14:38:10 2018 +0000
description:
Include <machine/mcontext.h> now its available
diffstat:
sys/arch/usermode/target/i386/cpu_i386.c | 10 +++-------
sys/arch/usermode/target/x86_64/cpu_x86_64.c | 13 +++----------
2 files changed, 6 insertions(+), 17 deletions(-)
diffs (82 lines):
diff -r c93fe7cad84f -r d600293a2566 sys/arch/usermode/target/i386/cpu_i386.c
--- a/sys/arch/usermode/target/i386/cpu_i386.c Tue May 22 11:09:57 2018 +0000
+++ b/sys/arch/usermode/target/i386/cpu_i386.c Tue May 22 14:38:10 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_i386.c,v 1.5 2018/05/18 20:21:14 reinoud Exp $ */
+/* $NetBSD: cpu_i386.c,v 1.6 2018/05/22 14:38:10 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_i386.c,v 1.5 2018/05/18 20:21:14 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_i386.c,v 1.6 2018/05/22 14:38:10 reinoud Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -49,6 +49,7 @@
#include <dev/mm.h>
#include <machine/machdep.h>
#include <machine/thunk.h>
+#include <machine/mcontext.h>
#include "opt_exec.h"
@@ -89,11 +90,6 @@
/*
* mcontext extensions to handle signal delivery.
*/
-#define _UC_SETSTACK 0x00010000
-#define _UC_CLRSTACK 0x00020000
-#define _UC_VM 0x00040000
-#define _UC_TLSBASE 0x00080000
-
void
sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
diff -r c93fe7cad84f -r d600293a2566 sys/arch/usermode/target/x86_64/cpu_x86_64.c
--- a/sys/arch/usermode/target/x86_64/cpu_x86_64.c Tue May 22 11:09:57 2018 +0000
+++ b/sys/arch/usermode/target/x86_64/cpu_x86_64.c Tue May 22 14:38:10 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_x86_64.c,v 1.4 2018/05/18 21:05:10 reinoud Exp $ */
+/* $NetBSD: cpu_x86_64.c,v 1.5 2018/05/22 14:38:10 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_x86_64.c,v 1.4 2018/05/18 21:05:10 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_x86_64.c,v 1.5 2018/05/22 14:38:10 reinoud Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -49,7 +49,7 @@
#include <dev/mm.h>
#include <machine/machdep.h>
#include <machine/thunk.h>
-
+#include <machine/mcontext.h>
#if 0
static void dump_regs(register_t *reg);;
@@ -84,16 +84,9 @@
};
-/* should be the same as i386 */
/*
* mcontext extensions to handle signal delivery.
*/
-#define _UC_SETSTACK 0x00010000
-#define _UC_CLRSTACK 0x00020000
-#define _UC_VM 0x00040000
-#define _UC_TLSBASE 0x00080000
-
-
void
sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
{
Home |
Main Index |
Thread Index |
Old Index