From: Nicolas Pitre Date: Wed, 8 Feb 2006 21:19:37 +0000 (+0000) Subject: [ARM] 3309/1: disable the pre-ARMv5 NPTL kernel helper in the non MMU case X-Git-Tag: v2.6.16-rc3~56^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49bca4c2815feafd5f999bf43baf87e0dd8d1d08;p=pandora-kernel.git [ARM] 3309/1: disable the pre-ARMv5 NPTL kernel helper in the non MMU case Patch from Nicolas Pitre The cmpxchg emulation on pre-ARMv5 relies on user code executed from a kernel address. If the operation cannot complete atomically, it is aborted from the usr_entry macro by clearing the Z flag. This clearing of the Z flag is done whenever the user pc is above TASK_SIZE. However this "pc >= TASK_SIZE" test cannot work in the non MMU case. Worse: the current code will corrupt the Z flag on every entry to the kernel. Let's disable it in the non MMU case for now. Using NPTL on non MMU targets needs to be worked out anyway. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King --- Reading git-diff-tree failed