Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 sun4v: Revert previous - paddr_t is...



details:   https://anonhg.NetBSD.org/src/rev/3d4fe94dc033
branches:  trunk
changeset: 821669:3d4fe94dc033
user:      palle <palle%NetBSD.org@localhost>
date:      Sun Feb 12 19:35:54 2017 +0000

description:
sun4v: Revert previous - paddr_t is not a pointer... noted by nakayama@

diffstat:

 sys/arch/sparc64/sparc64/trap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 11f5f25461bc -r 3d4fe94dc033 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c   Sun Feb 12 18:43:56 2017 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c   Sun Feb 12 19:35:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.187 2017/02/11 23:41:36 palle Exp $ */
+/*     $NetBSD: trap.c,v 1.188 2017/02/12 19:35:54 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.187 2017/02/11 23:41:36 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.188 2017/02/12 19:35:54 palle Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -738,8 +738,8 @@
                        if (dsfsr & SFSR_FV)
                                dsfar = ldxa(SFAR, ASI_DMMU);
                } else {
-                       paddr_t mmu_fsa_dfa = cpus->ci_mmufsa +
-                         (offsetof(struct mmufsa, dfa) / sizeof(paddr_t));
+                       paddr_t mmu_fsa_dfa = cpus->ci_mmufsa
+                         + offsetof(struct mmufsa, dfa);
                        dsfar = ldxa(mmu_fsa_dfa, ASI_PHYS_CACHED);
                }
 #ifdef DEBUG



Home | Main Index | Thread Index | Old Index