OSDN Git Service

riscv: add nommu support
[tomoyo/tomoyo-test1.git] / arch / riscv / include / asm / futex.h
index 4ad6409..418564b 100644 (file)
 #include <linux/errno.h>
 #include <asm/asm.h>
 
+/* We don't even really need the extable code, but for now keep it simple */
+#ifndef CONFIG_MMU
+#define __enable_user_access()         do { } while (0)
+#define __disable_user_access()                do { } while (0)
+#endif
+
 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)     \
 {                                                              \
        uintptr_t tmp;                                          \