Module Name: src
Committed By: palle
Date: Fri May 13 21:21:43 UTC 2016
Modified Files:
src/sys/arch/sparc64/sparc64: trap.c
Log Message:
Fixed typo in comment + reorder parameters for trap debug output to match
function prototype for data_access_fault()
To generate a diff of this commit:
cvs rdiff -u -r1.182 -r1.183 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64/trap.c
diff -u src/sys/arch/sparc64/sparc64/trap.c:1.182 src/sys/arch/sparc64/sparc64/trap.c:1.183
--- src/sys/arch/sparc64/sparc64/trap.c:1.182 Sun May 1 19:57:55 2016
+++ src/sys/arch/sparc64/sparc64/trap.c Fri May 13 21:21:43 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.182 2016/05/01 19:57:55 palle Exp $ */
+/* $NetBSD: trap.c,v 1.183 2016/05/13 21:21:43 palle Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.182 2016/05/01 19:57:55 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.183 2016/05/13 21:21:43 palle Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -438,7 +438,7 @@ print_trapframe(struct trapframe64 *tf)
/*
* Called from locore.s trap handling, for non-MMU-related traps.
- * (MMU-related traps go through mem_access_fault, below.)
+ * (MMU-related traps go through data_access_fault, below.)
*/
void
trap(struct trapframe64 *tf, unsigned int type, vaddr_t pc, long tstate)
@@ -1053,7 +1053,7 @@ data_access_fault(struct trapframe64 *tf
printf("%ld: data_access_fault(%p, %x, %p, %p, %lx, %lx) "
"nsaved=%d\n",
(long)(curproc?curproc->p_pid:-1), tf, type,
- (void *)addr, (void *)pc,
+ (void *)pc, (void *)addr,
sfva, sfsr, (int)curpcb->pcb_nsaved);
#ifdef DDB
if ((trapdebug & TDB_NSAVED && curpcb->pcb_nsaved))