Module Name: src Committed By: reinoud Date: Sun Aug 28 19:38:20 UTC 2011
Modified Files: src/sys/arch/usermode/usermode: trap.c Log Message: Don't use the content of trapframe yet until we know how to use fill it To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/usermode/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/usermode/trap.c diff -u src/sys/arch/usermode/usermode/trap.c:1.9 src/sys/arch/usermode/usermode/trap.c:1.10 --- src/sys/arch/usermode/usermode/trap.c:1.9 Sun Aug 28 00:40:10 2011 +++ src/sys/arch/usermode/usermode/trap.c Sun Aug 28 19:38:20 2011 @@ -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 <rein...@netbsd.org> @@ -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; }