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 make this compile again.
details: https://anonhg.NetBSD.org/src/rev/f2a9f6d7115c
branches: trunk
changeset: 351397:f2a9f6d7115c
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 11 21:04:29 2017 +0000
description:
make this compile again.
diffstat:
sys/arch/sparc64/sparc64/trap.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r eb39f0205f7f -r f2a9f6d7115c sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c Sat Feb 11 19:35:45 2017 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c Sat Feb 11 21:04:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.185 2017/02/10 23:26:23 palle Exp $ */
+/* $NetBSD: trap.c,v 1.186 2017/02/11 21:04:29 christos 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.185 2017/02/10 23:26:23 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.186 2017/02/11 21:04:29 christos Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -738,8 +738,9 @@
if (dsfsr & SFSR_FV)
dsfar = ldxa(SFAR, ASI_DMMU);
} else {
- uint8_t* mmu_fsa_dfa = (uint8_t*)cpus->ci_mmufsa + offsetof(struct mmufsa, dfa);
- dsfar = ldxa((paddr_t)mmu_fsa_dfa, ASI_PHYS_CACHED);
+ paddr_t mmu_fsa_dfa = cpus->ci_mmufsa
+ + offsetof(struct mmufsa, dfa);
+ dsfar = ldxa(mmu_fsa_dfa, ASI_PHYS_CACHED);
}
#ifdef DEBUG
if (!CPU_ISSUN4V) {
Home |
Main Index |
Thread Index |
Old Index