-/* $OpenBSD: machdep.c,v 1.85 2023/12/04 15:00:09 claudio Exp $ */
+/* $OpenBSD: machdep.c,v 1.86 2024/02/21 01:45:14 dlg Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
}
}
+ /* Remove reserved memory. */
+ node = fdt_find_node("/reserved-memory");
+ if (node) {
+ for (node = fdt_child_node(node); node;
+ node = fdt_next_node(node)) {
+ char *no_map;
+ if (fdt_node_property(node, "no-map", &no_map) < 0)
+ continue;
+ if (fdt_get_reg(node, 0, ®))
+ continue;
+ if (reg.size == 0)
+ continue;
+ memreg_remove(®);
+ }
+ }
+
/* Remove the initial 64MB block. */
reg.addr = memstart;
reg.size = memend - memstart;
-/* $OpenBSD: machdep.c,v 1.34 2024/01/23 19:51:10 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.35 2024/02/21 01:45:14 dlg Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
if (node) {
for (node = fdt_child_node(node); node;
node = fdt_next_node(node)) {
+ char *no_map;
+ if (fdt_node_property(node, "no-map", &no_map) < 0)
+ continue;
if (fdt_get_reg(node, 0, ®))
continue;
if (reg.size == 0)