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

Segher Boessenkool segher at kernel.crashing.org
Thu Apr 12 17:43:09 EST 2007


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




More information about the Linuxppc-dev mailing list