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 18:55:46 +0000 (10:55 -0800)
commitc44d83ec7018dd23255c23897492b3c8d43785df
tree3b2810569a138f05c6d397faf953ccfa23488a51
parent43d8b1ef8250705d07fadceefa44f91b32e08328
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