Subject: Re: [PATCH 4/8] bootwrapper: help for 64 bit cpus

From: Segher Boessenkool <[email-masked]>
Date: Thu, 12 Apr 2007 09:43:09 +0200

> +	/* 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