Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/riscv/riscv Second arg to fdt_memory_remove_range i...
details: https://anonhg.NetBSD.org/src/rev/5cf5ed637927
branches: trunk
changeset: 376054:5cf5ed637927
user: skrll <skrll%NetBSD.org@localhost>
date: Sun May 28 12:56:56 2023 +0000
description:
Second arg to fdt_memory_remove_range is a size so pass dtbsize and not
dtb + dtbsize
diffstat:
sys/arch/riscv/riscv/riscv_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 92d4a6ca6a9d -r 5cf5ed637927 sys/arch/riscv/riscv/riscv_machdep.c
--- a/sys/arch/riscv/riscv/riscv_machdep.c Sun May 28 11:00:03 2023 +0000
+++ b/sys/arch/riscv/riscv/riscv_machdep.c Sun May 28 12:56:56 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: riscv_machdep.c,v 1.27 2023/05/14 09:14:30 skrll Exp $ */
+/* $NetBSD: riscv_machdep.c,v 1.28 2023/05/28 12:56:56 skrll Exp $ */
/*-
* Copyright (c) 2014, 2019, 2022 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#include "opt_riscv_debug.h"
#include <sys/cdefs.h>
-__RCSID("$NetBSD: riscv_machdep.c,v 1.27 2023/05/14 09:14:30 skrll Exp $");
+__RCSID("$NetBSD: riscv_machdep.c,v 1.28 2023/05/28 12:56:56 skrll Exp $");
#include <sys/param.h>
@@ -758,7 +758,7 @@ init_riscv(register_t hartid, paddr_t dt
fdt_memory_remove_reserved(memory_start, memory_end);
- fdt_memory_remove_range(dtb, dtb + dtbsize);
+ fdt_memory_remove_range(dtb, dtbsize);
/* Perform PT build and VM init */
cpu_kernel_vm_init(memory_start, memory_end);
Home |
Main Index |
Thread Index |
Old Index