From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 52E50DDF38 for ; Thu, 12 Apr 2007 17:43:14 +1000 (EST) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [PATCH 4/8] bootwrapper: help for 64 bit cpus Date: Thu, 12 Apr 2007 09:43:09 +0200 To: Milton Miller Cc: linuxppc-dev@ozlabs.org, Paul Mackerras , David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > + /* We are in 64-bit mode. This program must run in 32 bit > + * mode. Assume we are actually running somewhere in the > + * low 32 bits of the address space, so we can just turn > + * off MSR[SF] which is bit 0. > + */ > + .machine push > + .machine "ppc64" > + rldicl r0,r0,0,1 > + sync > + mtmsrd r0 > + isync > + .machine pop I'm not sure this actually works on all CPUs -- aren't you supposed to use rfid for this? Segher