Source-Changes-HG archive

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

[src/trunk]: src/lib/libkvm compare matching TG1 bits.



details:   https://anonhg.NetBSD.org/src/rev/2c2278ef74f6
branches:  trunk
changeset: 994328:2c2278ef74f6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Nov 01 05:37:11 2018 +0000

description:
compare matching TG1 bits.

aarch64 crash dump kvtop now less broken, but still not stable.

diffstat:

 lib/libkvm/kvm_aarch64.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2b3013fcdf27 -r 2c2278ef74f6 lib/libkvm/kvm_aarch64.c
--- a/lib/libkvm/kvm_aarch64.c  Thu Nov 01 03:08:46 2018 +0000
+++ b/lib/libkvm/kvm_aarch64.c  Thu Nov 01 05:37:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm_aarch64.c,v 1.3 2018/04/01 04:35:02 ryo Exp $ */
+/* $NetBSD: kvm_aarch64.c,v 1.4 2018/11/01 05:37:11 mrg Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
 
 #include "kvm_private.h"
 
-__RCSID("$NetBSD: kvm_aarch64.c,v 1.3 2018/04/01 04:35:02 ryo Exp $");
+__RCSID("$NetBSD: kvm_aarch64.c,v 1.4 2018/11/01 05:37:11 mrg Exp $");
 
 /*ARGSUSED*/
 void
@@ -83,7 +83,7 @@
        }
 
        const cpu_kcore_hdr_t * const cpu_kh = kd->cpu_data;
-       const u_int tg1 =__SHIFTOUT(cpu_kh->kh_tcr1, TCR_TG1); 
+       const u_int tg1 = cpu_kh->kh_tcr1 & TCR_TG1; 
        const u_int t1siz = __SHIFTOUT(cpu_kh->kh_tcr1, TCR_T1SZ);
 
        /*



Home | Main Index | Thread Index | Old Index