hpsim, fix SAL handling in fw-emu
authorJiri Slaby <jslaby@suse.cz>
Thu, 8 Mar 2012 20:01:16 +0000 (21:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:26:30 +0000 (12:26 -0800)
commit0745d19abc492437e601c83281287d10202ee411
treee997b08172538284567f8fdab34989dce6c85190
parentfef21073af6f826510e41fc367df68383b63e1d2
hpsim, fix SAL handling in fw-emu

The switch-cases of SAL_FREQ_BASE generate non-relocatable code. The
same as for the ifs one level upper. This causes oopses early in boot
because the kernel jumps to the hell instead of the offset in sal
callback.

So use ifs here for SAL_FREQ_BASE decision too.

Isn't there any compiler directive or settings to solve that cleanly?

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/hp/sim/boot/fw-emu.c