Module Name:    src
Committed By:   jmcneill
Date:           Sun Sep  5 13:20:34 UTC 2021

Modified Files:
        src/sys/arch/arm/fdt: arm_fdt.c arm_fdtvar.h

Log Message:
Remove unused arm_fdt_memory_dump


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/fdt/arm_fdt.c \
    src/sys/arch/arm/fdt/arm_fdtvar.h

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/arm/fdt/arm_fdt.c
diff -u src/sys/arch/arm/fdt/arm_fdt.c:1.18 src/sys/arch/arm/fdt/arm_fdt.c:1.19
--- src/sys/arch/arm/fdt/arm_fdt.c:1.18	Mon Aug 30 23:20:00 2021
+++ src/sys/arch/arm/fdt/arm_fdt.c	Sun Sep  5 13:20:34 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: arm_fdt.c,v 1.18 2021/08/30 23:20:00 jmcneill Exp $ */
+/* $NetBSD: arm_fdt.c,v 1.19 2021/09/05 13:20:34 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcne...@invisible.ca>
@@ -31,7 +31,7 @@
 #include "opt_modular.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm_fdt.c,v 1.18 2021/08/30 23:20:00 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm_fdt.c,v 1.19 2021/09/05 13:20:34 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -227,29 +227,6 @@ arm_fdt_timer_register(void (*timerfn)(v
 	_arm_fdt_timer_init = timerfn;
 }
 
-void
-arm_fdt_memory_dump(paddr_t pa)
-{
-	const struct arm_platform *plat = arm_fdt_platform();
-	struct fdt_attach_args faa;
-	bus_space_tag_t bst;
-	bus_space_handle_t bsh;
-
-	plat->ap_init_attach_args(&faa);
-
-	bst = faa.faa_bst;
-	bus_space_map(bst, pa, 0x100, 0, &bsh);
-
-	for (int i = 0; i < 0x100; i += 0x10) {
-		printf("%" PRIxPTR ": %08x %08x %08x %08x\n",
-		    (uintptr_t)(pa + i),
-		    bus_space_read_4(bst, bsh, i + 0),
-		    bus_space_read_4(bst, bsh, i + 4),
-		    bus_space_read_4(bst, bsh, i + 8),
-		    bus_space_read_4(bst, bsh, i + 12));
-	}
-}
-
 #ifdef __HAVE_GENERIC_CPU_INITCLOCKS
 void
 cpu_initclocks(void)
Index: src/sys/arch/arm/fdt/arm_fdtvar.h
diff -u src/sys/arch/arm/fdt/arm_fdtvar.h:1.18 src/sys/arch/arm/fdt/arm_fdtvar.h:1.19
--- src/sys/arch/arm/fdt/arm_fdtvar.h:1.18	Mon Aug 30 23:20:00 2021
+++ src/sys/arch/arm/fdt/arm_fdtvar.h	Sun Sep  5 13:20:34 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: arm_fdtvar.h,v 1.18 2021/08/30 23:20:00 jmcneill Exp $ */
+/* $NetBSD: arm_fdtvar.h,v 1.19 2021/09/05 13:20:34 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcne...@invisible.ca>
@@ -97,8 +97,6 @@ void	arm_fdt_irq_handler(void *);
 void	arm_fdt_fiq_set_handler(void (*)(void *));
 void	arm_fdt_fiq_handler(void *);
 
-void	arm_fdt_memory_dump(paddr_t);
-
 void	arm_fdt_module_init(void);
 
 #endif /* !_ARM_ARM_FDTVAR_H */

Reply via email to