From owner-cvs-src@FreeBSD.ORG Thu May 19 07:21:48 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EA3216A4CE; Thu, 19 May 2005 07:21:48 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9557343D75; Thu, 19 May 2005 07:21:47 +0000 (GMT) (envelope-from grehan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4J7LlTu006096; Thu, 19 May 2005 07:21:47 GMT (envelope-from grehan@repoman.freebsd.org) Received: (from grehan@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4J7LlDr006095; Thu, 19 May 2005 07:21:47 GMT (envelope-from grehan) Message-Id: <200505190721.j4J7LlDr006095@repoman.freebsd.org> From: Peter Grehan Date: Thu, 19 May 2005 07:21:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/boot/ofw/libofw ofw_copy.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 07:21:48 -0000 grehan 2005-05-19 07:21:46 UTC FreeBSD src repository Modified files: sys/boot/ofw/libofw ofw_copy.c Log: Change ofw_readin/ofw_copyin to map the entire region before copying, rather than a page at a time. This was creating far too many single-page mappings, and eventually OFW overflowed some internal data structure and refused to map any more. The new algorithm creates far less mappings and fixed a bug where multiple mappings for the same page would be created. 'Twas known this was a problem, but only became urgent when the install CD's mfs_root grew large enough to cause the overflow. Revision Changes Path 1.15 +74 -24 src/sys/boot/ofw/libofw/ofw_copy.c