Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Do what the comment says and reserve ranges that...



details:   https://anonhg.NetBSD.org/src/rev/5f6c295b9998
branches:  trunk
changeset: 371956:5f6c295b9998
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Oct 20 11:38:21 2022 +0000

description:
Do what the comment says and reserve ranges that do and do not have the
"no-map" property.

Required for qemu/riscv

diffstat:

 sys/dev/fdt/fdt_memory.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 4ac790edbdf2 -r 5f6c295b9998 sys/dev/fdt/fdt_memory.c
--- a/sys/dev/fdt/fdt_memory.c  Thu Oct 20 07:18:11 2022 +0000
+++ b/sys/dev/fdt/fdt_memory.c  Thu Oct 20 11:38:21 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_memory.c,v 1.6 2022/08/06 20:16:42 ryo Exp $ */
+/* $NetBSD: fdt_memory.c,v 1.7 2022/10/20 11:38:21 skrll Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "opt_fdt.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_memory.c,v 1.6 2022/08/06 20:16:42 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_memory.c,v 1.7 2022/10/20 11:38:21 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -154,9 +154,6 @@
                        bus_addr_t addr;
                        bus_size_t size;
 
-                       if (!of_hasprop(child, "no-map"))
-                               continue;
-
                        if (fdtbus_get_reg(child, 0, &addr, &size) != 0)
                                continue;
                        if (size == 0)



Home | Main Index | Thread Index | Old Index