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 Don't use the content of trapfram...



details:   https://anonhg.NetBSD.org/src/rev/784daf1b777f
branches:  trunk
changeset: 768898:784daf1b777f
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sun Aug 28 19:38:20 2011 +0000

description:
Don't use the content of trapframe yet until we know how to use fill it

diffstat:

 sys/arch/usermode/usermode/trap.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r a1bd85f20fe8 -r 784daf1b777f sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Sun Aug 28 19:37:15 2011 +0000
+++ b/sys/arch/usermode/usermode/trap.c Sun Aug 28 19:38:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.9 2011/08/28 00:40:10 jmcneill Exp $ */
+/* $NetBSD: trap.c,v 1.10 2011/08/28 19:38:20 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.9 2011/08/28 00:40:10 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.10 2011/08/28 19:38:20 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -146,12 +146,12 @@
                                /* copyin / copyout */
                                if (!onfault)
                                        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->tf_pc = onfault;
-                               tf->tf_out[0] = (rv == EACCES) ? EFAULT : rv;
+                               // tf->tf_pc = onfault;
+                               // tf->tf_io[0] = (rv == EACCES) ? EFAULT : rv;
                                recurse--;
                                return;
                        }



Home | Main Index | Thread Index | Old Index