Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/atheros Support using MEMSIZE
details: https://anonhg.NetBSD.org/src/rev/3a1723cd3703
branches: trunk
changeset: 767829:3a1723cd3703
user: matt <matt%NetBSD.org@localhost>
date: Sun Jul 31 23:10:58 2011 +0000
description:
Support using MEMSIZE
diffstat:
sys/arch/mips/atheros/ar7100.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r c7e2a040f890 -r 3a1723cd3703 sys/arch/mips/atheros/ar7100.c
--- a/sys/arch/mips/atheros/ar7100.c Sun Jul 31 22:43:01 2011 +0000
+++ b/sys/arch/mips/atheros/ar7100.c Sun Jul 31 23:10:58 2011 +0000
@@ -29,10 +29,11 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ar7100.c,v 1.1 2011/07/07 05:06:44 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ar7100.c,v 1.2 2011/07/31 23:10:58 matt Exp $");
#define __INTR_PRIVATE
#include "pci.h"
+#include "opt_memsize.h"
#include <sys/param.h>
@@ -102,7 +103,11 @@
static uint32_t
ar7100_get_memsize(void)
{
+#ifdef MEMSIZE
+ return MEMSIZE;
+#else
return 128*1024*1024;
+#endif
}
static void
Home |
Main Index |
Thread Index |
Old Index