]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - arch/arm/mm/proc-macros.S
Merge branch 'akpm' (patches from Andrew)
[thirdparty/linux.git] / arch / arm / mm / proc-macros.S
index 5461d589a1e25e7b63207f83968f63429860263b..60ac7c5999a98eb3046d32e17299cc42dfd980ec 100644 (file)
@@ -5,6 +5,7 @@
  *  VMA_VM_FLAGS
  *  VM_EXEC
  */
+#include <linux/const.h>
 #include <asm/asm-offsets.h>
 #include <asm/thread_info.h>
 
@@ -30,7 +31,7 @@
  * act_mm - get current->active_mm
  */
        .macro  act_mm, rd
-       bic     \rd, sp, #8128
+       bic     \rd, sp, #(THREAD_SIZE - 1) & ~63
        bic     \rd, \rd, #63
        ldr     \rd, [\rd, #TI_TASK]
        .if (TSK_ACTIVE_MM > IMM12_MASK)