]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix kernel thread creation on ABIv2
authorAnton Blanchard <anton@samba.org>
Tue, 4 Feb 2014 05:08:51 +0000 (16:08 +1100)
committerAnton Blanchard <anton@samba.org>
Wed, 23 Apr 2014 00:05:23 +0000 (10:05 +1000)
commitba1bdd0688c151a9bd5f34cad6f7c2e3ad046265
treee65291b54d3de8d90c370581d776dbb4d2aafe05
parentcbdb041bc1df954e5a68e16ba8c6d2e43a09e03e
powerpc: Fix kernel thread creation on ABIv2

Change how we setup registers for ret_from_kernel_thread. In
ABIv1, instead of passing a function descriptor in, dereference
it and pass the target in directly.

Use ppc_global_function_entry to get it right on both ABIv1 and ABIv2.

Signed-off-by: Anton Blanchard <anton@samba.org>
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/process.c