]> err.no Git - linux-2.6/blobdiff - arch/arm/kernel/entry-armv.S
[ARM] 3060/1: allow constants found in asm/memory.h to be used in asm code
[linux-2.6] / arch / arm / kernel / entry-armv.S
index 7152bfbee581ea4fa83769bd323564a6249782f7..be439cab92c62dcf2e58aac391ea99b99e0efe01 100644 (file)
@@ -15,6 +15,7 @@
  */
 #include <linux/config.h>
 
+#include <asm/memory.h>
 #include <asm/glue.h>
 #include <asm/vfpmacros.h>
 #include <asm/hardware.h>              /* should be moved into entry-macro.S */
@@ -310,7 +311,7 @@ __pabt_svc:
 
 #if __LINUX_ARM_ARCH__ < 6 && !defined(CONFIG_NEEDS_SYSCALL_FOR_CMPXCHG)
        @ make sure our user space atomic helper is aborted
-       cmp     r2, #VIRT_OFFSET
+       cmp     r2, #TASK_SIZE
        bichs   r3, r3, #PSR_Z_BIT
 #endif
 
@@ -537,7 +538,7 @@ ENTRY(__switch_to)
 #ifdef CONFIG_CPU_MPCORE
        clrex
 #else
-       strex   r3, r4, [ip]                    @ Clear exclusive monitor
+       strex   r5, r4, [ip]                    @ Clear exclusive monitor
 #endif
 #endif
 #if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)