|
@@ -7,9 +7,6 @@
|
|
#include "linux/ptrace.h"
|
|
#include "linux/ptrace.h"
|
|
#include "linux/sched.h"
|
|
#include "linux/sched.h"
|
|
#include "asm/uaccess.h"
|
|
#include "asm/uaccess.h"
|
|
-#ifdef CONFIG_PROC_MM
|
|
|
|
-#include "proc_mm.h"
|
|
|
|
-#endif
|
|
|
|
#include "skas_ptrace.h"
|
|
#include "skas_ptrace.h"
|
|
|
|
|
|
|
|
|
|
@@ -158,24 +155,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
-#ifdef CONFIG_PROC_MM
|
|
|
|
- case PTRACE_SWITCH_MM: {
|
|
|
|
- struct mm_struct *old = child->mm;
|
|
|
|
- struct mm_struct *new = proc_mm_get_mm(data);
|
|
|
|
-
|
|
|
|
- if (IS_ERR(new)) {
|
|
|
|
- ret = PTR_ERR(new);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- atomic_inc(&new->mm_users);
|
|
|
|
- child->mm = new;
|
|
|
|
- child->active_mm = new;
|
|
|
|
- mmput(old);
|
|
|
|
- ret = 0;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-#endif
|
|
|
|
#ifdef PTRACE_ARCH_PRCTL
|
|
#ifdef PTRACE_ARCH_PRCTL
|
|
case PTRACE_ARCH_PRCTL:
|
|
case PTRACE_ARCH_PRCTL:
|
|
/* XXX Calls ptrace on the host - needs some SMP thinking */
|
|
/* XXX Calls ptrace on the host - needs some SMP thinking */
|