]> git.karo-electronics.de Git - karo-tx-linux.git/commit
alpha: simplify fork and friends
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Oct 2012 05:11:58 +0000 (01:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Oct 2012 22:16:45 +0000 (18:16 -0400)
commitca23c3e0712f67356289817edeba67e8ba30a70e
treed2d37d0ff223611c278148f8d83cf4376ae27f6a
parent1a2fa330ec2a9f905e07b654620763ff6ac8cc75
alpha: simplify fork and friends

* no need to restore everything from switch_stack when we only need $26
* no need to pass current_pt_regs() manually, we can just as easily
calculate it in alpha_clone/alpha_vfork ($8 + constant)
* interpretation of zero usp as "use the parent's" is simpler in copy_thread();
let fork and vfork just pass 0.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/kernel/entry.S
arch/alpha/kernel/process.c