diff options
author | Kyle McMartin <kyle@shortfin.cabal.ca> | 2008-02-18 23:34:34 -0800 |
---|---|---|
committer | Kyle McMartin <kyle@shortfin.cabal.ca> | 2008-03-15 19:12:03 -0700 |
commit | ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 (patch) | |
tree | 71351cd3150e87a2d5a5c2ae06ea143e7345cf14 /include | |
parent | d0347b49c9a877a33c59f80de1a9dbabd5244205 (diff) | |
download | linux-ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2.tar.bz2 |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-parisc/pdc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-parisc/pdc.h b/include/asm-parisc/pdc.h index b340c42f6bbc..9eaa794c3e4a 100644 --- a/include/asm-parisc/pdc.h +++ b/include/asm-parisc/pdc.h @@ -645,7 +645,7 @@ int pdc_soft_power_button(int sw_control); void pdc_io_reset(void); void pdc_io_reset_devices(void); int pdc_iodc_getc(void); -int pdc_iodc_print(unsigned char *str, unsigned count); +int pdc_iodc_print(const unsigned char *str, unsigned count); void pdc_emergency_unlock(void); int pdc_sti_call(unsigned long func, unsigned long flags, |