ARM: Add base support for ARMv7-M
[deliverable/linux.git] / arch / arm / include / asm / ptrace.h
index 3d52ee1bfb3113e113f231807dba71bc739ceac0..04c99f36ff7f902208c475066e28cbf67077f606 100644 (file)
@@ -45,6 +45,7 @@ struct pt_regs {
  */
 static inline int valid_user_regs(struct pt_regs *regs)
 {
+#ifndef CONFIG_CPU_V7M
        unsigned long mode = regs->ARM_cpsr & MODE_MASK;
 
        /*
@@ -67,6 +68,9 @@ static inline int valid_user_regs(struct pt_regs *regs)
                regs->ARM_cpsr |= USR_MODE;
 
        return 0;
+#else /* ifndef CONFIG_CPU_V7M */
+       return 1;
+#endif
 }
 
 static inline long regs_return_value(struct pt_regs *regs)
This page took 0.026551 seconds and 5 git commands to generate.