Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/bcm53xx Support a MEMSIZE option
details: https://anonhg.NetBSD.org/src/rev/b43330f8eb6b
branches: trunk
changeset: 782254:b43330f8eb6b
user: matt <matt%NetBSD.org@localhost>
date: Tue Oct 23 23:16:05 2012 +0000
description:
Support a MEMSIZE option
diffstat:
sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 26141a4913cb -r b43330f8eb6b sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c
--- a/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Tue Oct 23 23:13:20 2012 +0000
+++ b/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Tue Oct 23 23:16:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm53xx_machdep.c,v 1.5 2012/10/17 20:20:54 matt Exp $ */
+/* $NetBSD: bcm53xx_machdep.c,v 1.6 2012/10/23 23:16:05 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#define IDM_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.5 2012/10/17 20:20:54 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.6 2012/10/23 23:16:05 matt Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_broadcom.h"
@@ -244,7 +244,10 @@
#endif
psize_t memsize = bcm53xx_memprobe();
- //memsize = 512*1024*1024;
+#ifdef MEMSIZE
+ if ((memsize >> 20) > MEMSIZE)
+ memsize = MEMSIZE*1024*1024;
+#endif
const bool bigmem_p = (memsize >> 20) > 256;
arm32_bootmem_init(KERN_VTOPHYS(KERNEL_BASE), memsize,
Home |
Main Index |
Thread Index |
Old Index