Module Name: src Committed By: pooka Date: Mon Feb 17 19:43:52 UTC 2014
Modified Files: src/sys/rump/librump/rumpkern: vm.c Log Message: simply issue a warning if <1MB RAM configured. it might work, but not going to start enumerating when and where it might. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/sys/rump/librump/rumpkern/vm.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/rump/librump/rumpkern/vm.c diff -u src/sys/rump/librump/rumpkern/vm.c:1.147 src/sys/rump/librump/rumpkern/vm.c:1.148 --- src/sys/rump/librump/rumpkern/vm.c:1.147 Mon Feb 17 19:33:05 2014 +++ src/sys/rump/librump/rumpkern/vm.c Mon Feb 17 19:43:52 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: vm.c,v 1.147 2014/02/17 19:33:05 pooka Exp $ */ +/* $NetBSD: vm.c,v 1.148 2014/02/17 19:43:52 pooka Exp $ */ /* * Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.147 2014/02/17 19:33:05 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.148 2014/02/17 19:43:52 pooka Exp $"); #include <sys/param.h> #include <sys/atomic.h> @@ -306,9 +306,9 @@ uvm_init(void) if (rump_physmemlimit / mult != tmp) panic("uvm_init: RUMP_MEMLIMIT overflow: %s", buf); /* it's not like we'd get far with, say, 1 byte, but ... */ - if (rump_physmemlimit < 2*MAXPHYS) - panic("uvm_init: no memory, need at least %d bytes", - 2*MAXPHYS); + if (rump_physmemlimit < 1024*1024) + printf("uvm_init: WARNING: <1MB RAM limit, " + "hope you know what you're doing\n"); /* reserve some memory for the pager */ pdlimit = rump_physmemlimit;