Module Name:    src
Committed By:   jmcneill
Date:           Mon Jan 27 01:15:09 UTC 2020

Modified Files:
        src/sys/arch/evbarm/fdt: fdt_memory.c

Log Message:
Save 400KB of RAM by fixing a really dumb bug in sizing of the fdt memory
pool.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/fdt/fdt_memory.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/evbarm/fdt/fdt_memory.c
diff -u src/sys/arch/evbarm/fdt/fdt_memory.c:1.3 src/sys/arch/evbarm/fdt/fdt_memory.c:1.4
--- src/sys/arch/evbarm/fdt/fdt_memory.c:1.3	Thu Nov  1 10:48:48 2018
+++ src/sys/arch/evbarm/fdt/fdt_memory.c	Mon Jan 27 01:15:09 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_memory.c,v 1.3 2018/11/01 10:48:48 jmcneill Exp $ */
+/* $NetBSD: fdt_memory.c,v 1.4 2020/01/27 01:15:09 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "opt_bootconfig.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_memory.c,v 1.3 2018/11/01 10:48:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_memory.c,v 1.4 2020/01/27 01:15:09 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -48,7 +48,7 @@ struct fdt_memory_range {
 static TAILQ_HEAD(fdt_memory_rangehead, fdt_memory_range) fdt_memory_ranges =
     TAILQ_HEAD_INITIALIZER(fdt_memory_ranges);
 
-static struct fdt_memory_range fdt_memory_range_pool[sizeof(struct fdt_memory_range) * DRAM_BLOCKS];
+static struct fdt_memory_range fdt_memory_range_pool[DRAM_BLOCKS];
 
 static struct fdt_memory_range *
 fdt_memory_range_alloc(void)

Reply via email to