Module Name: src
Committed By: rin
Date: Wed Oct 21 11:02:31 UTC 2020
Modified Files:
src/sys/dev/fdt: simplefb.c
Log Message:
sfb_addr should be uint64_t, not bus_addr_t. Otherwise, its value
cannot be obtained via prop_dictionary_get_uint64() for most ILP32
architectures where bus_addr_t is 32-bit width.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/fdt/simplefb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/fdt/simplefb.c
diff -u src/sys/dev/fdt/simplefb.c:1.10 src/sys/dev/fdt/simplefb.c:1.11
--- src/sys/dev/fdt/simplefb.c:1.10 Tue Oct 20 23:03:30 2020
+++ src/sys/dev/fdt/simplefb.c Wed Oct 21 11:02:31 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: simplefb.c,v 1.10 2020/10/20 23:03:30 jmcneill Exp $ */
+/* $NetBSD: simplefb.c,v 1.11 2020/10/21 11:02:31 rin Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -29,7 +29,7 @@
#include "opt_wsdisplay_compat.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: simplefb.c,v 1.10 2020/10/20 23:03:30 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: simplefb.c,v 1.11 2020/10/21 11:02:31 rin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -132,7 +132,8 @@ simplefb_attach_genfb(struct simplefb_so
uint32_t width, height, stride;
uint16_t depth;
const char *format;
- bus_addr_t addr, sfb_addr;
+ uint64_t sfb_addr;
+ bus_addr_t addr;
bus_size_t size;
if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {