Source-Changes-HG archive

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

[src/trunk]: src/lib/libkvm use uint64_t for idx_mask. fixes lookups for som...



details:   https://anonhg.NetBSD.org/src/rev/26ffae622b38
branches:  trunk
changeset: 995370:26ffae622b38
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Dec 19 11:00:09 2018 +0000

description:
use uint64_t for idx_mask.  fixes lookups for some PAs.  from skrll.

bump copyright.  we updated this a lot of this in 2018.

diffstat:

 lib/libkvm/kvm_aarch64.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 80aab1bc9ccb -r 26ffae622b38 lib/libkvm/kvm_aarch64.c
--- a/lib/libkvm/kvm_aarch64.c  Wed Dec 19 09:20:56 2018 +0000
+++ b/lib/libkvm/kvm_aarch64.c  Wed Dec 19 11:00:09 2018 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: kvm_aarch64.c,v 1.6 2018/12/18 16:25:47 skrll Exp $ */
+/* $NetBSD: kvm_aarch64.c,v 1.7 2018/12/19 11:00:09 mrg Exp $ */
 
 /*-
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
+ * Copyright (c) 2014, 2018 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -48,7 +48,7 @@
 
 #include "kvm_private.h"
 
-__RCSID("$NetBSD: kvm_aarch64.c,v 1.6 2018/12/18 16:25:47 skrll Exp $");
+__RCSID("$NetBSD: kvm_aarch64.c,v 1.7 2018/12/19 11:00:09 mrg Exp $");
 
 /*ARGSUSED*/
 void
@@ -127,7 +127,8 @@
                pt_entry_t pte;
 
                /* now index into the pte table */
-               const u_int idx_mask =  __BITS(addr_shift + pte_shift - 1, addr_shift);
+               const uint64_t idx_mask = __BITS(addr_shift + pte_shift - 1,
+                                                addr_shift);
                pte_addr += 8 * __SHIFTOUT(va, idx_mask);
 
                /* Find and read the PTE. */



Home | Main Index | Thread Index | Old Index