From owner-cvs-src-old@FreeBSD.ORG Sat May 28 04:10:58 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DC5310656DC for ; Sat, 28 May 2011 04:10:58 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8B32B8FC15 for ; Sat, 28 May 2011 04:10:58 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4S4AwUB083692 for ; Sat, 28 May 2011 04:10:58 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4S4Awag083691 for cvs-src-old@freebsd.org; Sat, 28 May 2011 04:10:58 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <201105280410.p4S4Awag083691@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Sat, 28 May 2011 04:10:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/powerpc/booke locore.S machdep.c pmap.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2011 04:10:58 -0000 marcel 2011-05-28 04:10:44 UTC FreeBSD src repository Modified files: sys/powerpc/booke locore.S machdep.c pmap.c Log: SVN rev 222400 on 2011-05-28 04:10:44Z by marcel Better support different kernel hand-offs. When loaded directly from U-Boot, the kernel is passed a standard argc/argv pair. The Juniper loader passes the metadata pointer as the second argument and passes 0 in the first. The FreeBSD loader passes the metadata pointer in the first argument. As such, have locore preserve the first 2 arguments in registers r30 & r31. Change e500_init() to accept these arguments. Don't pass global offsets (i.e. kernel_text and _end) as arguments to e500_init(). We can reference those directly. Rename e500_init() to booke_init() now that we're changing the prototype. In booke_init(), "decode" arg1 and arg2 to obtain the metadata pointer correctly. For the U-Boot case, clear SBSS and BSS and bank on having a static FDT for now. This allows loading the ELF kernel and jumping to the entry point without trampoline. Revision Changes Path 1.15 +29 -31 src/sys/powerpc/booke/locore.S 1.36 +32 -21 src/sys/powerpc/booke/machdep.c 1.42 +1 -1 src/sys/powerpc/booke/pmap.c