[parisc-linux] 2.4.18-pa35 SMP process hangs on a J200

MichaelS.Zick MichaelS.Zick
Tue, 11 Jun 2002 13:39:38 -0500


On Tuesday 11 June 2002 09:58 am, Randolph Chung wrote:
>
> think we are looking at multiple bugs here.....
>
Very likely...
You might check the HPPA version of:

arch/i386/kernel/irq.c::__global_save_flags.

using objdump -d on the kernel.o produced by my compiler
(a different version of GCC than used for pa-risc) I find that
for the "c" code sequence:
....
int cpu = smp_processor_id() ;

__save_flags(flags) ;
....
generates assembly code which modifies the flags during the
initialization of "cpu" before the flags are actually saved.
....
in the pa-risc branch, try the equivalent of:
....
int cpu ;
....
__save_flags(flags) ;
....
cpu = smp_processor_id() ;
....

Mike