PARISC pdc_console: fix bizarre panic on boot
authorKyle McMartin <kyle@shortfin.cabal.ca>
Tue, 15 Apr 2008 16:46:03 +0000 (11:46 -0500)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:29 +0000 (18:53 -0700)
commit24319896af06b84f965bcefa0f2d926b726ed05b
tree4da5bab4b82b887f393e12764071ab98fa68e1d3
parentfe23b328b6fd02f23a30690baf45a4092162d760
PARISC pdc_console: fix bizarre panic on boot

upstream commit ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2

commit 721fdf34167580ff98263c74cead8871d76936e6
Author: Kyle McMartin <kyle@shortfin.cabal.ca>
Date:   Thu Dec 6 09:32:15 2007 -0800

    [PARISC] print more than one character at a time for pdc console

introduced a subtle bug by accidentally removing the "static" from
iodc_dbuf. This resulted in, what appeared to be, a trap without
*current set to a task. Probably the result of a trap in real mode
while calling firmware.

Also do other misc clean ups. Since the only input from firmware is non
blocking, share iodc_dbuf between input and output, and spinlock the
only callers.

[jejb: fixed up rejections against the stable tree]

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/parisc/kernel/firmware.c
arch/parisc/kernel/pdc_cons.c
include/asm-parisc/pdc.h