Module Name: src
Committed By: mrg
Date: Thu Nov 1 05:37:12 UTC 2018
Modified Files:
src/lib/libkvm: kvm_aarch64.c
Log Message:
compare matching TG1 bits.
aarch64 crash dump kvtop now less broken, but still not stable.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libkvm/kvm_aarch64.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libkvm/kvm_aarch64.c
diff -u src/lib/libkvm/kvm_aarch64.c:1.3 src/lib/libkvm/kvm_aarch64.c:1.4
--- src/lib/libkvm/kvm_aarch64.c:1.3 Sun Apr 1 04:35:02 2018
+++ src/lib/libkvm/kvm_aarch64.c Thu Nov 1 05:37:11 2018
@@ -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 @@ lose:
}
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);
/*