Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/fdt Remove unused arm_fdt_memory_dump



details:   https://anonhg.NetBSD.org/src/rev/9af9c27e2419
branches:  trunk
changeset: 1023385:9af9c27e2419
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 05 13:20:34 2021 +0000

description:
Remove unused arm_fdt_memory_dump

diffstat:

 sys/arch/arm/fdt/arm_fdt.c    |  27 ++-------------------------
 sys/arch/arm/fdt/arm_fdtvar.h |   4 +---
 2 files changed, 3 insertions(+), 28 deletions(-)

diffs (66 lines):

diff -r f9f6a6f922c6 -r 9af9c27e2419 sys/arch/arm/fdt/arm_fdt.c
--- a/sys/arch/arm/fdt/arm_fdt.c        Sun Sep 05 13:19:39 2021 +0000
+++ b/sys/arch/arm/fdt/arm_fdt.c        Sun Sep 05 13:20:34 2021 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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_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)
diff -r f9f6a6f922c6 -r 9af9c27e2419 sys/arch/arm/fdt/arm_fdtvar.h
--- a/sys/arch/arm/fdt/arm_fdtvar.h     Sun Sep 05 13:19:39 2021 +0000
+++ b/sys/arch/arm/fdt/arm_fdtvar.h     Sun Sep 05 13:20:34 2021 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -97,8 +97,6 @@
 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 */



Home | Main Index | Thread Index | Old Index