diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index bcf58ece2ba1..aaae865e7932 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c | |||
@@ -70,6 +70,8 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | |||
70 | if (tlb_type == hypervisor) | 70 | if (tlb_type == hypervisor) |
71 | return; | 71 | return; |
72 | 72 | ||
73 | preempt_disable(); | ||
74 | |||
73 | #ifdef DCACHE_ALIASING_POSSIBLE | 75 | #ifdef DCACHE_ALIASING_POSSIBLE |
74 | /* If bit 13 of the kernel address we used to access the | 76 | /* If bit 13 of the kernel address we used to access the |
75 | * user page is the same as the virtual address that page | 77 | * user page is the same as the virtual address that page |
@@ -108,6 +110,8 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | |||
108 | for (; start < end; start += icache_line_size) | 110 | for (; start < end; start += icache_line_size) |
109 | flushi(start); | 111 | flushi(start); |
110 | } | 112 | } |
113 | |||
114 | preempt_enable(); | ||
111 | } | 115 | } |
112 | 116 | ||
113 | enum sparc_regset { | 117 | enum sparc_regset { |