]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enter 64-bit mode as early as possible in the 64-bit PowerPC boot sequence.
authornwhitehorn <nwhitehorn@FreeBSD.org>
Sun, 26 Jun 2016 18:43:42 +0000 (18:43 +0000)
committernwhitehorn <nwhitehorn@FreeBSD.org>
Sun, 26 Jun 2016 18:43:42 +0000 (18:43 +0000)
commit79c9e44bf34a9f4f0d674636e288db1de61f9408
treedd6ddaed78abfbfedd7cb560fd0c5636d22ca5a7
parentc0a24efce9d60b733c0f507e897dfa3e089c59cc
Enter 64-bit mode as early as possible in the 64-bit PowerPC boot sequence.
Most of the effect of setting MSR[SF] is that the CPU will stop ignoring
the high 32 bits of registers containing addresses in load/store
instructions. As such, the kernel was setting it only when it began to
need access to high memory. MSR[SF] also affects the operation of some
conditional instructions, however, and so setting it at late times could
subtly break code at very early times. This fixes use of the FDT mode in
loader, and FDT boot more generally, on 64-bit PowerPC systems.

Hardware provided by: IBM LTC
Approved by: re (kib)
sys/powerpc/aim/aim_machdep.c
sys/powerpc/aim/locore64.S