Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode Remove struct trapframe
details: https://anonhg.NetBSD.org/src/rev/3a971217db0a
branches: trunk
changeset: 769392:3a971217db0a
user: reinoud <reinoud%NetBSD.org@localhost>
date: Thu Sep 08 11:56:48 2011 +0000
description:
Remove struct trapframe
diffstat:
sys/arch/usermode/usermode/trap.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (45 lines):
diff -r de0703a79dbe -r 3a971217db0a sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Thu Sep 08 11:53:18 2011 +0000
+++ b/sys/arch/usermode/usermode/trap.c Thu Sep 08 11:56:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.33 2011/09/07 14:03:49 reinoud Exp $ */
+/* $NetBSD: trap.c,v 1.34 2011/09/08 11:56:48 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.33 2011/09/07 14:03:49 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.34 2011/09/08 11:56:48 reinoud Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -100,7 +100,6 @@
// debug_fh = thunk_open("/usr/sources/debug", O_RDWR | O_TRUNC | O_CREAT, 0666);
}
-static struct trapframe kernel_tf;
static void
mem_access_handler(int sig, siginfo_t *info, void *ctx)
@@ -113,7 +112,6 @@
struct pcb *pcb;
struct vmspace *vm;
struct vm_map *vm_map;
- struct trapframe *tf;
vm_prot_t atype;
vaddr_t va;
void *onfault;
@@ -214,8 +212,8 @@
panic("kernel fault");
panic("%s: can't call onfault yet\n", __func__);
/* jump to given onfault */
- tf = &kernel_tf;
- memset(tf, 0, sizeof(struct trapframe));
+ // tf = &kernel_tf;
+ // memset(tf, 0, sizeof(struct trapframe));
// tf->tf_pc = onfault;
// tf->tf_io[0] = (rv == EACCES) ? EFAULT : rv;
recurse--;
Home |
Main Index |
Thread Index |
Old Index