projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
344bb20
)
powerpc/syscall: Use is_compat_task()
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Mon, 8 Feb 2021 15:10:29 +0000
(15:10 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 11 Feb 2021 12:35:10 +0000
(23:35 +1100)
Instead of hard comparing task flags with _TIF_32BIT, use
is_compat_task(). The advantage is that it returns 0 on PPC32
allthough _TIF_32BIT is always set.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/c8094662199337a7200fea9f6e1d1f8b1b6d5f69.1612796617.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/interrupt.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/interrupt.c
b/arch/powerpc/kernel/interrupt.c
index 2dac4d2bb1cff68f4982fdd90dce8ffa7814f81f..46fd195ca659a74e89fbd46f95cf560ea1db9437 100644
(file)
--- a/
arch/powerpc/kernel/interrupt.c
+++ b/
arch/powerpc/kernel/interrupt.c
@@
-2,6
+2,8
@@
#include <linux/context_tracking.h>
#include <linux/err.h>
+#include <linux/compat.h>
+
#include <asm/asm-prototypes.h>
#include <asm/kup.h>
#include <asm/cputime.h>
@@
-118,7
+120,7
@@
notrace long system_call_exception(long r3, long r4, long r5,
/* May be faster to do array_index_nospec? */
barrier_nospec();
- if (unlikely(is_
32bi
t_task())) {
+ if (unlikely(is_
compa
t_task())) {
f = (void *)compat_sys_call_table[r0];
r3 &= 0x00000000ffffffffULL;