From patchwork Sun Apr 11 04:04:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 57971 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bilbo.ozlabs.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.1 X-Original-To: tony@bakeyournoodle.com Delivered-To: tony@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id B2DA5B7E4C for ; Sun, 11 Apr 2010 18:48:36 +1000 (EST) Received: by ozlabs.org (Postfix, from userid 1010) id 166EAB7D22; Sun, 11 Apr 2010 14:07:31 +1000 (EST) Date: Sun, 11 Apr 2010 14:04:48 +1000 From: Anton Blanchard To: yaboot-devel@lists.ozlabs.org Subject: [PATCH 5/10] Remove some stale code Message-ID: <20100411040448.GB11751@kryten> References: <20100411040149.GA3142@kryten> <20100411040226.GB3142@kryten> <20100411040256.GC3142@kryten> <20100411040321.GD3142@kryten> <20100411040427.GA11751@kryten> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100411040427.GA11751@kryten> User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Sun, 11 Apr 2010 18:48:32 +1000 X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: yaboot-devel-bounces+tony=bakeyournoodle.com@lists.ozlabs.org Errors-To: yaboot-devel-bounces+tony=bakeyournoodle.com@lists.ozlabs.org Content-Length: 1564 Lines: 49 Remove some old commented out code. Signed-off-by: Anton Blanchard Index: yaboot/second/prom.c =================================================================== --- yaboot.orig/second/prom.c 2010-04-01 16:00:17.000000000 +1100 +++ yaboot/second/prom.c 2010-04-01 16:02:44.000000000 +1100 @@ -41,8 +41,6 @@ prom_entry prom; ihandle prom_stdin, prom_stdout; -//extern int vsprintf(char *buf, const char *fmt, va_list args); - static ihandle prom_mem, prom_mmu; static ihandle prom_chosen, prom_options; @@ -597,25 +595,6 @@ void prom_release(void *virt, unsigned int size) { call_prom ("release", 2, 0, virt, size); -#if 0 /* this is bullshit, newworld OF RELEASE method works fine. */ - - /* release in not enough, it needs also an unmap call. This bit of forth - * code inspired from Darwin's bootloader but could be replaced by direct - * calls to the MMU package if needed - */ - call_prom ("interpret", 3, 1, -#if DEBUG - ".\" ReleaseMem:\" 2dup . . cr " -#endif - "over \" translate\" ^mmu " // Find out physical base - "^on0 " // Bail if translation failed - "drop " // Leaving phys on top of stack - "2dup \" unmap\" ^mmu " // Unmap the space first - "2dup \" release\" ^mmu " // Then free the virtual pages - "\" release\" ^mem " // Then free the physical pages - ,size, virt - ); -#endif /* bullshit */ } void