Commit 3a1d5c84 authored by David S. Miller's avatar David S. Miller

[SPARC]: Don't zero out tail during copy_from_user_inatomic().

Actually, since we use the same code for all the copying
types in and out of userspace, we check at runtime whether
preemption is disabled.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d6c64102
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/asmmacro.h> #include <asm/asmmacro.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/thread_info.h>
/* Work around cpp -rob */ /* Work around cpp -rob */
#define ALLOC #alloc #define ALLOC #alloc
...@@ -366,6 +367,9 @@ fixupretl: ...@@ -366,6 +367,9 @@ fixupretl:
blu 1f blu 1f
cmp %o1, %g1 cmp %o1, %g1
bgeu 1f bgeu 1f
ld [%g6 + TI_PREEMPT], %g1
cmp %g1, 0
bne 1f
nop nop
save %sp, -64, %sp save %sp, -64, %sp
mov %i0, %o0 mov %i0, %o0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment