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 The target of the OLO10 relocation ...



details:   https://anonhg.NetBSD.org/src/rev/e3cd7e4c66cd
branches:  trunk
changeset: 347511:e3cd7e4c66cd
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 29 15:57:07 2016 +0000

description:
The target of the OLO10 relocation is the simd13 field of the instruction,
so use a 13 bit target mask.
Fixes PR kern/51436 (I broke this myself in rev 1.4)

diffstat:

 sys/arch/sparc64/sparc64/kobj_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c668c1393ce5 -r e3cd7e4c66cd sys/arch/sparc64/sparc64/kobj_machdep.c
--- a/sys/arch/sparc64/sparc64/kobj_machdep.c   Mon Aug 29 04:21:25 2016 +0000
+++ b/sys/arch/sparc64/sparc64/kobj_machdep.c   Mon Aug 29 15:57:07 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kobj_machdep.c,v 1.5 2014/02/01 11:19:04 nakayama Exp $        */
+/*     $NetBSD: kobj_machdep.c,v 1.6 2016/08/29 15:57:07 martin Exp $  */
 
 /*-
  * Copyright (c) 2001 Jake Burkholder.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.5 2014/02/01 11:19:04 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.6 2016/08/29 15:57:07 martin Exp $");
 
 #define        ELFSIZE         ARCH_ELFSIZE
 
@@ -164,7 +164,7 @@
        _BM(22), _BM(10),               /* _HIPLT22, LOPLT10 */
        _BM(32), _BM(22), _BM(10),      /* _PCPLT32, _PCPLT22, _PCPLT10 */
        _BM(10), _BM(11), -1,           /* _10, _11, _64 */
-       _BM(10), _BM(22),               /* _OLO10, _HH22 */
+       _BM(13), _BM(22),               /* _OLO10, _HH22 */
        _BM(10), _BM(22),               /* _HM10, _LM22 */
        _BM(22), _BM(10), _BM(22),      /* _PC_HH22, _PC_HM10, _PC_LM22 */
        _BM(16), _BM(19),               /* _WDISP16, _WDISP19 */



Home | Main Index | Thread Index | Old Index