]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PARISC] pdc_console: fix bizarre panic on boot
authorKyle McMartin <kyle@shortfin.cabal.ca>
Tue, 19 Feb 2008 07:34:34 +0000 (23:34 -0800)
committerKyle McMartin <kyle@shortfin.cabal.ca>
Sun, 16 Mar 2008 02:12:03 +0000 (19:12 -0700)
commitef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2
tree71351cd3150e87a2d5a5c2ae06ea143e7345cf14
parentd0347b49c9a877a33c59f80de1a9dbabd5244205
[PARISC] pdc_console: fix bizarre panic on boot

Commit 721fdf34167580ff98263c74cead8871d76936e6 introduced a subtle bug
by accidently 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.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/kernel/firmware.c
arch/parisc/kernel/pdc_cons.c
include/asm-parisc/pdc.h