diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/xtensa/kernel/ptrace.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'arch/xtensa/kernel/ptrace.c')
-rw-r--r-- | arch/xtensa/kernel/ptrace.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c index 61fb2e9e903..a0d042aa296 100644 --- a/arch/xtensa/kernel/ptrace.c +++ b/arch/xtensa/kernel/ptrace.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <asm/pgtable.h> | 25 | #include <asm/pgtable.h> |
26 | #include <asm/page.h> | 26 | #include <asm/page.h> |
27 | #include <asm/system.h> | ||
27 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
28 | #include <asm/ptrace.h> | 29 | #include <asm/ptrace.h> |
29 | #include <asm/elf.h> | 30 | #include <asm/elf.h> |
@@ -154,7 +155,7 @@ int ptrace_setxregs(struct task_struct *child, void __user *uregs) | |||
154 | coprocessor_flush_all(ti); | 155 | coprocessor_flush_all(ti); |
155 | coprocessor_release_all(ti); | 156 | coprocessor_release_all(ti); |
156 | 157 | ||
157 | ret |= __copy_from_user(&ti->xtregs_cp, &xtregs->cp0, | 158 | ret |= __copy_from_user(&ti->xtregs_cp, &xtregs->cp0, |
158 | sizeof(xtregs_coprocessor_t)); | 159 | sizeof(xtregs_coprocessor_t)); |
159 | #endif | 160 | #endif |
160 | ret |= __copy_from_user(®s->xtregs_opt, &xtregs->opt, | 161 | ret |= __copy_from_user(®s->xtregs_opt, &xtregs->opt, |
@@ -333,7 +334,8 @@ void do_syscall_trace_enter(struct pt_regs *regs) | |||
333 | do_syscall_trace(); | 334 | do_syscall_trace(); |
334 | 335 | ||
335 | #if 0 | 336 | #if 0 |
336 | audit_syscall_entry(current, AUDIT_ARCH_XTENSA..); | 337 | if (unlikely(current->audit_context)) |
338 | audit_syscall_entry(current, AUDIT_ARCH_XTENSA..); | ||
337 | #endif | 339 | #endif |
338 | } | 340 | } |
339 | 341 | ||
@@ -343,3 +345,4 @@ void do_syscall_trace_leave(struct pt_regs *regs) | |||
343 | && (current->ptrace & PT_PTRACED)) | 345 | && (current->ptrace & PT_PTRACED)) |
344 | do_syscall_trace(); | 346 | do_syscall_trace(); |
345 | } | 347 | } |
348 | |||