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 Move the fdt_memory_remove_reserved call...



details:   https://anonhg.NetBSD.org/src/rev/513826c79548
branches:  trunk
changeset: 371953:513826c79548
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Oct 20 07:13:45 2022 +0000

description:
Move the fdt_memory_remove_reserved call out of fdt_build_bootconfig

NFC.

diffstat:

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

diffs (36 lines):

diff -r cbca39e69e3f -r 513826c79548 sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Thu Oct 20 06:58:38 2022 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Thu Oct 20 07:13:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.95 2022/09/30 06:39:54 skrll Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.96 2022/10/20 07:13:45 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.95 2022/09/30 06:39:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.96 2022/10/20 07:13:45 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bootconfig.h"
@@ -240,8 +240,6 @@
        uint64_t addr, size;
        int index;
 
-       fdt_memory_remove_reserved(mem_start, mem_end);
-
        const uint64_t initrd_size =
            round_page(initrd_end) - trunc_page(initrd_start);
        if (initrd_size > 0)
@@ -611,6 +609,8 @@
        fdt_probe_rndseed(&rndseed_start, &rndseed_end);
        fdt_probe_efirng(&efirng_start, &efirng_end);
 
+       fdt_memory_remove_reserved(mem_start, mem_end);
+
        /*
         * Populate bootconfig structure for the benefit of dodumpsys
         */



Home | Main Index | Thread Index | Old Index