]> git.neil.brown.name Git - history.git/commit
[PATCH] ppc64: Fix occasional crash at boot in OF interface
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 9 Mar 2004 12:14:38 +0000 (04:14 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 9 Mar 2004 12:14:38 +0000 (04:14 -0800)
commit8661a5ff71c9da30f9b89c10424a5b2a5828bc3f
treef3254436ab7d48a054a649cf309b8e7dd472ac1c
parent6fb338db2dc71dc0666e2726fce1d2d9d620bcf3
[PATCH] ppc64: Fix occasional crash at boot in OF interface

The assembly code used to callback into Open Firmware client
interface in 32 bits mode used to backup the stack pointer in
the SPRG2 register.

That upsets Apple's implementation of Open Firmware significantly
and maybe others, causing them to crash in _some_ operations,
apparently the trigger is to cause a segment or hash table
fault, typically happens when letting that code initialize the
second display.

This patch fixes it, along with other cleanups of that asm code,
it did unnecessary register restores and backing up the stack
pointer is actually useless anyway.
arch/ppc64/kernel/entry.S