CVS commit: src/sys/arch/evbarm/mini2440

2014-03-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Mar 14 21:39:49 UTC 2014

Modified Files:
src/sys/arch/evbarm/mini2440: mini2440_machdep.c

Log Message:
#include arm/locore.h


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/mini2440/mini2440_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/evbarm/mini2440/mini2440_machdep.c
diff -u src/sys/arch/evbarm/mini2440/mini2440_machdep.c:1.7 src/sys/arch/evbarm/mini2440/mini2440_machdep.c:1.8
--- src/sys/arch/evbarm/mini2440/mini2440_machdep.c:1.7	Wed Oct 30 06:47:18 2013
+++ src/sys/arch/evbarm/mini2440/mini2440_machdep.c	Fri Mar 14 21:39:48 2014
@@ -131,7 +131,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mini2440_machdep.c,v 1.7 2013/10/30 06:47:18 uebayasi Exp $);
+__KERNEL_RCSID(0, $NetBSD: mini2440_machdep.c,v 1.8 2014/03/14 21:39:48 matt Exp $);
 
 #include opt_ddb.h
 #include opt_kgdb.h
@@ -176,6 +176,7 @@ __KERNEL_RCSID(0, $NetBSD: mini2440_mac
 
 #include machine/autoconf.h
 
+#include arm/locore.h
 #include arm/arm32/machdep.h
 
 #include arm/s3c2xx0/s3c2440reg.h



CVS commit: src/sys/arch/evbarm/mini2440

2012-02-02 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Fri Feb  3 00:33:08 UTC 2012

Modified Files:
src/sys/arch/evbarm/mini2440: mini2440_machdep.c

Log Message:
Make sure to allow MEMORY_DISK as rootfs.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/mini2440/mini2440_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/evbarm/mini2440/mini2440_machdep.c
diff -u src/sys/arch/evbarm/mini2440/mini2440_machdep.c:1.1 src/sys/arch/evbarm/mini2440/mini2440_machdep.c:1.2
--- src/sys/arch/evbarm/mini2440/mini2440_machdep.c:1.1	Mon Jan 30 03:28:34 2012
+++ src/sys/arch/evbarm/mini2440/mini2440_machdep.c	Fri Feb  3 00:33:08 2012
@@ -131,7 +131,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mini2440_machdep.c,v 1.1 2012/01/30 03:28:34 nisimura Exp $);
+__KERNEL_RCSID(0, $NetBSD: mini2440_machdep.c,v 1.2 2012/02/03 00:33:08 nisimura Exp $);
 
 #include opt_ddb.h
 #include opt_kgdb.h
@@ -262,11 +262,11 @@ extern int pmap_debug_level;
 
 #define KERNEL_PT_SYS		0	/* L2 table for mapping zero page */
 #define KERNEL_PT_KERNEL	1	/* L2 table for mapping kernel */
-#define	KERNEL_PT_KERNEL_NUM	2	/* L2 tables for mapping kernel VM */
+#define KERNEL_PT_KERNEL_NUM	3	/* L2 tables for mapping kernel VM */
 
 #define KERNEL_PT_VMDATA	(KERNEL_PT_KERNEL + KERNEL_PT_KERNEL_NUM)
 
-#define	KERNEL_PT_VMDATA_NUM	4	/* start with 16MB of KVM */
+#define KERNEL_PT_VMDATA_NUM	4	/* start with 16MB of KVM */
 #define NUM_KERNEL_PTS		(KERNEL_PT_VMDATA + KERNEL_PT_VMDATA_NUM)
 
 pv_addr_t kernel_pt_table[NUM_KERNEL_PTS];
@@ -1110,6 +1110,7 @@ extern char *booted_kernel;
 static void
 mini2440_device_register(device_t dev, void *aux) {
 	if (device_class(dev) == DV_IFNET) {
+#ifndef MEMORY_DISK_IS_ROOT
 		if (bi_rdev != NULL  device_is_a(dev, bi_rdev-devname) ) {
 			booted_device = dev;
 			rootfstype = MOUNT_NFS;
@@ -1117,6 +1118,7 @@ mini2440_device_register(device_t dev, v
 booted_kernel = bi_path-bootpath;
 			}
 		}
+#endif
 		if (bi_net != NULL  device_is_a(dev, bi_net-devname)) {
 			prop_data_t pd;
 			pd = prop_data_create_data_nocopy(bi_net-mac_address, ETHER_ADDR_LEN);
@@ -1128,6 +1130,7 @@ mini2440_device_register(device_t dev, v
 			bi_net = NULL;
 		}
 	}
+#ifndef MEMORY_DISK_IS_ROOT
 	if (bi_rdev != NULL  device_class(dev) == DV_DISK
 	 device_is_a(dev, bi_rdev-devname)
 	 device_unit(dev) == bi_rdev-cookie) {
@@ -1138,4 +1141,5 @@ mini2440_device_register(device_t dev, v
 			booted_kernel = bi_path-bootpath;
 		}
 	}
+#endif
 }