Module Name: src Committed By: macallan Date: Sat Mar 7 15:38:32 UTC 2015
Modified Files: src/sys/arch/evbmips/ingenic: machdep.c Log Message: only use the first 256MB for now until I figure out how to properly access the rest To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbmips/ingenic/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/evbmips/ingenic/machdep.c diff -u src/sys/arch/evbmips/ingenic/machdep.c:1.3 src/sys/arch/evbmips/ingenic/machdep.c:1.4 --- src/sys/arch/evbmips/ingenic/machdep.c:1.3 Tue Dec 23 15:09:13 2014 +++ src/sys/arch/evbmips/ingenic/machdep.c Sat Mar 7 15:38:32 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.3 2014/12/23 15:09:13 macallan Exp $ */ +/* $NetBSD: machdep.c,v 1.4 2015/03/07 15:38:32 macallan Exp $ */ /*- * Copyright (c) 2014 Michael Lorenz @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2014/12/23 15:09:13 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2015/03/07 15:38:32 macallan Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -149,7 +149,7 @@ mach_init(void) * Note: Reserve the first page! That's where the trap * vectors are located. */ - memsize = 0x40000000; + memsize = 0x10000000; printf("Memory size: 0x%08x\n", memsize); physmem = btoc(memsize); @@ -159,7 +159,7 @@ mach_init(void) mem_clusters[0].size = 0x10000000 - PAGE_SIZE; mem_clusters[1].start = 0x30000000; mem_clusters[1].size = 0x30000000; - mem_cluster_cnt = 2; + mem_cluster_cnt = 1; /* * Load the available pages into the VM system.