parisc: sticon - unbreak on 64bit kernel
authorHelge Deller <deller@gmx.de>
Wed, 6 Nov 2013 22:38:59 +0000 (23:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 19:05:04 +0000 (11:05 -0800)
commit5e4b3de253c94f6d2efda3274f5fe7bd4a0c0de9
tree3d4e32a8baf28ba54346af52a9b4c75ec0bfcb36
parent050dcf4a4cacca605dd9c94aa0a8a80078abf206
parisc: sticon - unbreak on 64bit kernel

commit 0219132fe7c26574371232b50db085573f6fbd3f upstream.

STI text console (sticon) was broken on 64bit machines with more than
4GB RAM and this lead in some cases to a kernel crash.

Since sticon uses the 32bit STI API it needs to keep pointers to memory
below 4GB. But on a 64bit kernel some memory regions (e.g. the kernel
stack) might be above 4GB which then may crash the kernel in the STI
functions.

Additionally sticon didn't selected the built-in framebuffer fonts by
default. This is now fixed.

On a side-note: Theoretically we could enhance the sticon driver to
use the 64bit STI API. But - beside the fact that some machines don't
provide a 64bit STI ROM - this would just add complexity.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/sticore.c
drivers/video/sticore.h
drivers/video/stifb.c