OSDN Git Service

sparc: share process creation helpers between sparc and sparc64
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 12 May 2020 17:15:26 +0000 (19:15 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Jun 2020 08:49:56 +0000 (10:49 +0200)
commita4261d4bb45022e1b8b95df13dbb05abac490165
tree72504dbe0f99175dbed9f47851dcb114f8036282
parentdcad2a62bc7948342404217831233957e8f169cc
sparc: share process creation helpers between sparc and sparc64

As promised in the previous patch, this moves the process creation
helpers into a common process.c file that is shared between sparc and
sparc64. It allows us to get rid of quite a bit custom assembler and the
to remove the separe 32bit specific sparc_do_fork() call.

One thing to note, is that when clone() was called with a separate stack
for the child the assembler would align it. But copy_thread() has always
been doing that too so that line wasn't needed and can thus simply be
removed.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Guo Ren <guoren@kernel.org>
Cc: linux-csky@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Link: https://lore.kernel.org/r/20200512171527.570109-3-christian.brauner@ubuntu.com
arch/sparc/kernel/Makefile
arch/sparc/kernel/entry.S
arch/sparc/kernel/kernel.h
arch/sparc/kernel/process.c [new file with mode: 0644]
arch/sparc/kernel/process_32.c
arch/sparc/kernel/process_64.c