Module Name: src
Committed By: matt
Date: Sun Jul 31 23:10:58 UTC 2011
Modified Files:
src/sys/arch/mips/atheros: ar7100.c
Log Message:
Support using MEMSIZE
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mips/atheros/ar7100.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/mips/atheros/ar7100.c
diff -u src/sys/arch/mips/atheros/ar7100.c:1.1 src/sys/arch/mips/atheros/ar7100.c:1.2
--- src/sys/arch/mips/atheros/ar7100.c:1.1 Thu Jul 7 05:06:44 2011
+++ src/sys/arch/mips/atheros/ar7100.c Sun Jul 31 23:10:58 2011
@@ -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