Module Name:    src
Committed By:   nonaka
Date:           Sat Apr 24 21:52:34 UTC 2010

Modified Files:
        src/sys/arch/hpcarm/conf: WZERO3
        src/sys/arch/hpcarm/hpcarm: pxa2x0_hpc_machdep.c

Log Message:
The capacity of RAM is decided according to the model.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hpcarm/conf/WZERO3
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.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/hpcarm/conf/WZERO3
diff -u src/sys/arch/hpcarm/conf/WZERO3:1.1 src/sys/arch/hpcarm/conf/WZERO3:1.2
--- src/sys/arch/hpcarm/conf/WZERO3:1.1	Sat Apr 17 13:36:21 2010
+++ src/sys/arch/hpcarm/conf/WZERO3	Sat Apr 24 21:52:34 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: WZERO3,v 1.1 2010/04/17 13:36:21 nonaka Exp $
+#	$NetBSD: WZERO3,v 1.2 2010/04/24 21:52:34 nonaka Exp $
 #
 #	WZERO3 -- Sharp Windows Mobile 5 based PDA
 #
@@ -7,11 +7,7 @@
 
 #options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		"GENERIC-$Revision: 1.1 $"
-
-# memory size
-options 	DRAM_PAGES="16384"	# 4Ki * 16384page = 64MiB
-#options 	DRAM_PAGES="32768"	# 4Ki * 32768page = 128MiB (WS011SH)
+#ident 		"GENERIC-$Revision: 1.2 $"
 
 # estimated number of users
 maxusers	32

Index: src/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c
diff -u src/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c:1.1 src/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c:1.2
--- src/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c:1.1	Sat Apr 17 13:36:21 2010
+++ src/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c	Sat Apr 24 21:52:34 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: pxa2x0_hpc_machdep.c,v 1.1 2010/04/17 13:36:21 nonaka Exp $	*/
+/*	$NetBSD: pxa2x0_hpc_machdep.c,v 1.2 2010/04/24 21:52:34 nonaka Exp $	*/
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_hpc_machdep.c,v 1.1 2010/04/17 13:36:21 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_hpc_machdep.c,v 1.2 2010/04/24 21:52:34 nonaka Exp $");
 
 #include "opt_ddb.h"
 #include "opt_dram_pages.h"
@@ -437,6 +437,16 @@
 	bootconfig.dram[0].pages = DRAM_PAGES;
 	bootconfig.dramblocks = 1;
 
+	if (platid_match(&platid, &platid_mask_MACH_SHARP_WZERO3_WS003SH)
+	 || platid_match(&platid, &platid_mask_MACH_SHARP_WZERO3_WS004SH)
+	 || platid_match(&platid, &platid_mask_MACH_SHARP_WZERO3_WS007SH)) {
+		bootconfig.dram[0].pages = 16384; /* 64MiB */
+	} else
+	if (platid_match(&platid, &platid_mask_MACH_SHARP_WZERO3_WS011SH)
+	 || platid_match(&platid, &platid_mask_MACH_SHARP_WZERO3_WS020SH)) {
+		bootconfig.dram[0].pages = 32768; /* 128MiB */
+	}
+
 	kerneldatasize = (uint32_t)&end - (uint32_t)KERNEL_TEXT_BASE;
 	symbolsize = 0;
 #if NKSYMS || defined(DDB) || defined(MODULAR)

Reply via email to