Module Name:    src
Committed By:   skrll
Date:           Sun May 28 12:56:56 UTC 2023

Modified Files:
        src/sys/arch/riscv/riscv: riscv_machdep.c

Log Message:
Second arg to fdt_memory_remove_range is a size so pass dtbsize and not
dtb + dtbsize


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/riscv/riscv/riscv_machdep.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/arch/riscv/riscv/riscv_machdep.c
diff -u src/sys/arch/riscv/riscv/riscv_machdep.c:1.27 src/sys/arch/riscv/riscv/riscv_machdep.c:1.28
--- src/sys/arch/riscv/riscv/riscv_machdep.c:1.27	Sun May 14 09:14:30 2023
+++ src/sys/arch/riscv/riscv/riscv_machdep.c	Sun May 28 12:56:56 2023
@@ -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);

Reply via email to