Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke Replace mfpir with mfspr r, 286. The ...
details: https://anonhg.NetBSD.org/src/rev/e8a010370562
branches: trunk
changeset: 331083:e8a010370562
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jul 30 23:56:01 2014 +0000
description:
Replace mfpir with mfspr r, 286. The Power ISA and GAS disagree on the
semantics of this instruction, so prefer the well defined replacement.
diffstat:
sys/arch/powerpc/booke/trap.c | 6 +++---
sys/arch/powerpc/booke/trap_subr.S | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 816262255289 -r e8a010370562 sys/arch/powerpc/booke/trap.c
--- a/sys/arch/powerpc/booke/trap.c Wed Jul 30 23:27:55 2014 +0000
+++ b/sys/arch/powerpc/booke/trap.c Wed Jul 30 23:56:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.23 2013/08/23 06:19:46 matt Exp $ */
+/* $NetBSD: trap.c,v 1.24 2014/07/30 23:56:01 joerg Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.23 2013/08/23 06:19:46 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.24 2014/07/30 23:56:01 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -428,7 +428,7 @@
}
if (OPC_MFSPR_P(opcode, SPR_PIR)) {
- __asm ("mfpir %0" : "=r"(tf->tf_fixreg[OPC_MFSPR_REG(opcode)]));
+ __asm ("mfspr %0, 286" : "=r"(tf->tf_fixreg[OPC_MFSPR_REG(opcode)]));
return true;
}
diff -r 816262255289 -r e8a010370562 sys/arch/powerpc/booke/trap_subr.S
--- a/sys/arch/powerpc/booke/trap_subr.S Wed Jul 30 23:27:55 2014 +0000
+++ b/sys/arch/powerpc/booke/trap_subr.S Wed Jul 30 23:56:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap_subr.S,v 1.8 2012/08/01 16:19:43 matt Exp $ */
+/* $NetBSD: trap_subr.S,v 1.9 2014/07/30 23:56:01 joerg Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-RCSID("$NetBSD: trap_subr.S,v 1.8 2012/08/01 16:19:43 matt Exp $")
+RCSID("$NetBSD: trap_subr.S,v 1.9 2014/07/30 23:56:01 joerg Exp $")
.globl _C_LABEL(sctrapexit), _C_LABEL(trapexit), _C_LABEL(intrcall)
@@ -858,7 +858,7 @@
ori %r5,%r6,_C_LABEL(perfmon_vector)@l
mtspr SPR_IVOR35, %r5
- mfpir %r5 /* get Process ID register */
+ mfspr %r5, 286 /* get Process ID register */
cmplwi %r5,0
bnelr /* return if non-0 (non-primary) */
Home |
Main Index |
Thread Index |
Old Index