Module Name: src
Committed By: mrg
Date: Fri Nov 9 04:06:40 UTC 2018
Modified Files:
src/lib/libkvm: kvm_aarch64.c
Log Message:
tg1 is a 64 bit value, store it in a 64 bit variable.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/lib/libkvm/kvm_aarch64.c:1.5
--- src/lib/libkvm/kvm_aarch64.c:1.4 Thu Nov 1 05:37:11 2018
+++ src/lib/libkvm/kvm_aarch64.c Fri Nov 9 04:06:40 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm_aarch64.c,v 1.4 2018/11/01 05:37:11 mrg Exp $ */
+/* $NetBSD: kvm_aarch64.c,v 1.5 2018/11/09 04:06:40 mrg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
#include "kvm_private.h"
-__RCSID("$NetBSD: kvm_aarch64.c,v 1.4 2018/11/01 05:37:11 mrg Exp $");
+__RCSID("$NetBSD: kvm_aarch64.c,v 1.5 2018/11/09 04:06:40 mrg Exp $");
/*ARGSUSED*/
void
@@ -83,7 +83,7 @@ lose:
}
const cpu_kcore_hdr_t * const cpu_kh = kd->cpu_data;
- const u_int tg1 = cpu_kh->kh_tcr1 & TCR_TG1;
+ const uint64_t tg1 = cpu_kh->kh_tcr1 & TCR_TG1;
const u_int t1siz = __SHIFTOUT(cpu_kh->kh_tcr1, TCR_T1SZ);
/*