]> git.baikalelectronics.ru Git - kernel.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)
commit9ee01f325279f4b9c9294fcbb9059ea28e959d20
tree71351cd3150e87a2d5a5c2ae06ea143e7345cf14
parente6cfae817f82e75d95fd201029641148461672f7
[PARISC] pdc_console: fix bizarre panic on boot

Commit d46ded73a17c608ef4e44603ef9b3f06519c103d 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