summaryrefslogtreecommitdiffstats
path: root/lib/libc/powerpc64/gen/makecontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/powerpc64/gen/makecontext.c')
-rw-r--r--lib/libc/powerpc64/gen/makecontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/powerpc64/gen/makecontext.c b/lib/libc/powerpc64/gen/makecontext.c
index 6d980f3..b01c5c1 100644
--- a/lib/libc/powerpc64/gen/makecontext.c
+++ b/lib/libc/powerpc64/gen/makecontext.c
@@ -111,7 +111,7 @@ __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...)
* Use caller-saved regs 14/15 to hold params that _ctx_start
* will use to invoke the user-supplied func
*/
- mc->mc_srr0 = (uintptr_t) _ctx_start;
+ mc->mc_srr0 = *(uintptr_t *)_ctx_start;
mc->mc_gpr[1] = (uintptr_t) sp; /* new stack pointer */
mc->mc_gpr[14] = (uintptr_t) start; /* r14 <- start */
mc->mc_gpr[15] = (uintptr_t) ucp; /* r15 <- ucp */
OpenPOWER on IntegriCloud