From 37fe00547fa739fbaa36110eb9b68870bdd65b0f Mon Sep 17 00:00:00 2001 From: pooka Date: Mon, 17 Feb 2014 19:43:52 +0000 Subject: [PATCH] simply issue a warning if <1MB RAM configured. it might work, but not going to start enumerating when and where it might. --- sys/rump/librump/rumpkern/vm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/rump/librump/rumpkern/vm.c b/sys/rump/librump/rumpkern/vm.c index 3c6f32215a0a..e307cdfbea46 100644 --- a/sys/rump/librump/rumpkern/vm.c +++ b/sys/rump/librump/rumpkern/vm.c @@ -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 -__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 #include @@ -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;