CVS [email protected]: linux
Quoted 8 lines · Maciej W. Rozycki
Quoted 5 lines
Modified files:
arch/mips/kernel:scall_o32.Ssysmips.cLog message:
Barf.The new
mips_atomic_set()doesn't mask interrupts in the non-ll/sc case.
Thus it may fail to keep coherency. Is it intentional?
Yes. Assuming do_page_fault did it's job successfully the address which has been passed as argument to sysmips() is now writable and thus we won't take any pagefaults.
There are two remaining failure scenarios which probably are't very interesting for practical usage. It's when an interrupt is accessing the same address. This could be fixed by disabling interrupts. The other case is missaligned words.
Quoted 1 line
Also the
bad_stackexit point for the ll/sc case looks suspicient to me.
Indeed, the symbol deserves a better name. Cut'n'paste happens ;-)
Ralf
Quoted 12 lines · Ralf Baechle
Quoted 8 lines · Maciej W. Rozycki
Quoted 5 lines
Modified files:
arch/mips/kernel:scall_o32.Ssysmips.cLog message:
Barf.The new
mips_atomic_set()doesn't mask interrupts in the non-ll/sc case.
Thus it may fail to keep coherency. Is it intentional?
Quoted 9 lines
Yes. Assuming
do_page_faultdid it's job successfully the address which has been passed as argument tosysmips()is now writable and thus we won't take any pagefaults.There are two remaining failure scenarios which probably are't very interesting for practical usage. It's when an interrupt is accessing the same address. This could be fixed by disabling interrupts. The other case is missaligned words.
And a third one - when you enable kernel preemption with the preemptable kernel patch. :-)
Jun
Quoted 2 lines · Jun Sun
And a third one - when you enable kernel preemption with the preemptable kernel patch. :-)
Other people's problem.
Ralf