Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/fdt Make EFI_RUNTIME compile on arm



details:   https://anonhg.NetBSD.org/src/rev/721f73cc6bfc
branches:  trunk
changeset: 979161:721f73cc6bfc
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Dec 18 07:34:31 2020 +0000

description:
Make EFI_RUNTIME compile on arm

diffstat:

 sys/arch/evbarm/fdt/fdt_machdep.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r e4a7850cff3b -r 721f73cc6bfc sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Fri Dec 18 07:21:58 2020 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Fri Dec 18 07:34:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.84 2020/12/18 07:21:58 skrll Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.85 2020/12/18 07:34:31 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.84 2020/12/18 07:21:58 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.85 2020/12/18 07:34:31 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bootconfig.h"
@@ -474,8 +474,10 @@
        while (len >= 24) {
                const paddr_t pa = be64toh(map[0]);
                const vaddr_t va = be64toh(map[1]);
-               const uint64_t sz = be64toh(map[2]);
-               VPRINTF("%s: %s %lx-%lx (%lx-%lx)\n", __func__, prop, pa, pa+sz-1, va, va+sz-1);
+               const size_t sz = be64toh(map[2]);
+               VPRINTF("%s: %s %" PRIxPADDR "-%" PRIxVADDR "(%" PRIxVADDR
+                   "-%" PRIxVSIZE "\n", __func__, prop, pa, pa + sz - 1,
+                   va, va + sz - 1);
                arm_efirt_md_map_range(va, pa, sz, type);
                map += 3;
                len -= 24;



Home | Main Index | Thread Index | Old Index