]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/mips/mm/uasm.c
Merge branch 'MTU-core-range-checking-more'
[karo-tx-linux.git] / arch / mips / mm / uasm.c
index 3e0282d301d61bd4e35aee94ee5cf2f2cebd7a5e..a82970442b8a4f575a3ea8a42b98840295c6d817 100644 (file)
@@ -378,11 +378,7 @@ UASM_EXPORT_SYMBOL(ISAFUNC(uasm_build_label));
 int ISAFUNC(uasm_in_compat_space_p)(long addr)
 {
        /* Is this address in 32bit compat space? */
-#ifdef CONFIG_64BIT
-       return (((addr) & 0xffffffff00000000L) == 0xffffffff00000000L);
-#else
-       return 1;
-#endif
+       return addr == (int)addr;
 }
 UASM_EXPORT_SYMBOL(ISAFUNC(uasm_in_compat_space_p));