]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc: implement is_32bit_task
authorEric Paris <eparis@redhat.com>
Tue, 22 Apr 2014 16:39:51 +0000 (12:39 -0400)
committerEric Paris <eparis@redhat.com>
Wed, 23 Apr 2014 19:43:57 +0000 (15:43 -0400)
commit35d0c383e526031145db7643618d9a529454a32f
tree0c78dd542e0025fd2a6200f19b616d70dc98fc3a
parent66dde9dbae61e9e83f37f01868014a2b9732053c
sparc: implement is_32bit_task

We are currently embedding the same check from thread_info.h into
syscall.h thanks to the way syscall_get_arch() was implemented in the
audit tree.  Instead create a new function, is_32bit_task() which is
similar to that found on the powerpc arch.  This simplifies the
syscall.h code and makes the build/Kconfig requirements much easier
to understand.

Signed-off-by: Eric Paris <eparis@redhat.com
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: sparclinux@vger.kernel.org
arch/sparc/include/asm/syscall.h
arch/sparc/include/asm/thread_info_32.h
arch/sparc/include/asm/thread_info_64.h