Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa port-hppa/56830: RAS support is slightly ...



details:   https://anonhg.NetBSD.org/src/rev/5668241d5b38
branches:  trunk
changeset: 366078:5668241d5b38
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri May 13 18:40:02 2022 +0000

description:
port-hppa/56830: RAS support is slightly incorrect on hppa

When searching for RAS use tf_iioq_head without the HPPA_PC_PRIV_MASK bits
set.

diffstat:

 sys/arch/hppa/hppa/hppa_machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 1e6fe01553f2 -r 5668241d5b38 sys/arch/hppa/hppa/hppa_machdep.c
--- a/sys/arch/hppa/hppa/hppa_machdep.c Fri May 13 16:39:32 2022 +0000
+++ b/sys/arch/hppa/hppa/hppa_machdep.c Fri May 13 18:40:02 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hppa_machdep.c,v 1.32 2021/08/22 20:18:39 andvar Exp $ */
+/*     $NetBSD: hppa_machdep.c,v 1.33 2022/05/13 18:40:02 skrll Exp $  */
 
 /*-
  * Copyright (c) 1997, 2019 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hppa_machdep.c,v 1.32 2021/08/22 20:18:39 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hppa_machdep.c,v 1.33 2022/05/13 18:40:02 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -279,7 +279,9 @@
 
        p = l->l_proc;
        tf = l->l_md.md_regs;
-       rasaddr = (intptr_t)ras_lookup(p, (void *)tf->tf_iioq_head);
+
+       rasaddr = (intptr_t)ras_lookup(p,
+           (void *)(tf->tf_iioq_head & ~HPPA_PC_PRIV_MASK));
        if (rasaddr != -1) {
                rasaddr |= HPPA_PC_PRIV_USER;
                tf->tf_iioq_head = rasaddr;



Home | Main Index | Thread Index | Old Index