Source-Changes-HG archive

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

[src/trunk]: src/lib/libkvm be consistent about uint64_t and bit masks.



details:   https://anonhg.NetBSD.org/src/rev/01b5406e06e3
branches:  trunk
changeset: 995371:01b5406e06e3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Dec 19 11:02:21 2018 +0000

description:
be consistent about uint64_t and bit masks.

diffstat:

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

diffs (27 lines):

diff -r 26ffae622b38 -r 01b5406e06e3 lib/libkvm/kvm_aarch64.c
--- a/lib/libkvm/kvm_aarch64.c  Wed Dec 19 11:00:09 2018 +0000
+++ b/lib/libkvm/kvm_aarch64.c  Wed Dec 19 11:02:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm_aarch64.c,v 1.7 2018/12/19 11:00:09 mrg Exp $ */
+/* $NetBSD: kvm_aarch64.c,v 1.8 2018/12/19 11:02:21 mrg Exp $ */
 
 /*-
  * Copyright (c) 2014, 2018 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
 
 #include "kvm_private.h"
 
-__RCSID("$NetBSD: kvm_aarch64.c,v 1.7 2018/12/19 11:00:09 mrg Exp $");
+__RCSID("$NetBSD: kvm_aarch64.c,v 1.8 2018/12/19 11:02:21 mrg Exp $");
 
 /*ARGSUSED*/
 void
@@ -146,7 +146,7 @@
 
                if ((pte & LX_TYPE) == LX_TYPE_BLK) {
                        const size_t blk_size = 1 << addr_shift;
-                       const paddr_t blk_mask = __BITS(addr_shift - 1, 0);
+                       const uint64_t blk_mask = __BITS(addr_shift - 1, 0);
 
                        *pa = (pte & page_addr & ~blk_mask) | (va & blk_mask);
                        return blk_size - (va & blk_mask);



Home | Main Index | Thread Index | Old Index