···2525#define HWCAP_IDIVT (1 << 18)2626#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT)27272828-#if defined(__KERNEL__) && !defined(__ASSEMBLY__)2828+#if defined(__KERNEL__)2929+#if !defined(__ASSEMBLY__)2930/*3031 * This yields a mask that user programs can use to figure out what3132 * instruction set this cpu supports.3233 */3334#define ELF_HWCAP (elf_hwcap)3435extern unsigned int elf_hwcap;3636+#endif3537#endif36383739#endif
···427427/*428428 * The following syscalls are obsolete and no longer available for EABI.429429 */430430-#if defined(__ARM_EABI__) && !defined(__KERNEL__)430430+#if !defined(__KERNEL__)431431+#if defined(__ARM_EABI__)431432#undef __NR_time432433#undef __NR_umount433434#undef __NR_stime···441440#undef __NR_socketcall442441#undef __NR_syscall443442#undef __NR_ipc443443+#endif444444#endif445445446446#ifdef __KERNEL__
···1515 * We don't use int-l64.h for the kernel anymore but still use it for1616 * userspace to avoid code changes.1717 */1818-#if (_MIPS_SZLONG == 64) && !defined(__KERNEL__)1919-# include <asm-generic/int-l64.h>2020-#else1818+#ifdef __KERNEL__2119# include <asm-generic/int-ll64.h>2020+#else2121+# if _MIPS_SZLONG == 642222+# include <asm-generic/int-l64.h>2323+# else2424+# include <asm-generic/int-ll64.h>2525+# endif2226#endif23272428#ifndef __ASSEMBLY__