From owner-p4-projects@FreeBSD.ORG Tue Nov 4 22:19:41 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 664AC1065672; Tue, 4 Nov 2008 22:19:41 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 290461065692 for ; Tue, 4 Nov 2008 22:19:41 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 182B38FC28 for ; Tue, 4 Nov 2008 22:19:41 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mA4MJeTd075022 for ; Tue, 4 Nov 2008 22:19:40 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mA4MJert075020 for perforce@freebsd.org; Tue, 4 Nov 2008 22:19:40 GMT (envelope-from gonzo@FreeBSD.org) Date: Tue, 4 Nov 2008 22:19:40 GMT Message-Id: <200811042219.mA4MJert075020@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 152495 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 22:19:41 -0000 http://perforce.freebsd.org/chv.cgi?CH=152495 Change 152495 by gonzo@gonzo_jeeves on 2008/11/04 22:19:13 - Request all available memory from CFE - Make realmem/physmem handling less obscure Affected files ... .. //depot/projects/mips2/src/sys/mips/bcm47xx/bcm47xx_machdep.c#3 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/bcm47xx/bcm47xx_machdep.c#3 (text+ko) ==== @@ -103,7 +103,8 @@ int result; uint64_t addr, len, type; - result = cfe_enummem(i, 0, &addr, &len, &type); + result = cfe_enummem(i, CFE_FLG_FULL_ARENA, &addr, &len, + &type); if (result < 0) { phys_avail[i] = phys_avail[i + 1] = 0; break; @@ -124,10 +125,10 @@ physmem += len; } - realmem = btoc(physmem); #endif - physmem = realmem; + physmem = btoc(physmem); + realmem = physmem; init_param1(); init_param2(physmem);