[IA64] hpsim, fix SAL handling in fw-emu
authorJiri Slaby <jslaby@suse.cz>
Fri, 24 Feb 2012 11:10:15 +0000 (12:10 +0100)
committerTony Luck <tony.luck@intel.com>
Fri, 24 Feb 2012 22:24:38 +0000 (14:24 -0800)
commit82af3a4e9e37eee7680cd4c6fa5d31e6cbcbb05b
treebf0115516a26ab673b4f12be15c004b635dc4749
parent48e30fa0738be3688f655632d917498464019e60
[IA64] 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>
arch/ia64/hp/sim/boot/fw-emu.c
This page took 0.024803 seconds and 5 git commands to generate.