diff options
author | grehan <grehan@FreeBSD.org> | 2004-07-19 12:05:07 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-07-19 12:05:07 +0000 |
commit | ce9a4a568da53665c96cdba651640aaf127e2444 (patch) | |
tree | 9ba8d0f366d1d6a6fd73925e7cccaa781410c543 /lib/libc/powerpc | |
parent | a42d6290e180b4ca60809caafdcdffe9d126eca1 (diff) | |
download | FreeBSD-src-ce9a4a568da53665c96cdba651640aaf127e2444.zip FreeBSD-src-ce9a4a568da53665c96cdba651640aaf127e2444.tar.gz |
The new program counter should go into the trapframe's srr0 and
not the link register, which was lucky enough to work.
Diffstat (limited to 'lib/libc/powerpc')
-rw-r--r-- | lib/libc/powerpc/gen/makecontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/powerpc/gen/makecontext.c b/lib/libc/powerpc/gen/makecontext.c index 6f047df..d66e824 100644 --- a/lib/libc/powerpc/gen/makecontext.c +++ b/lib/libc/powerpc/gen/makecontext.c @@ -113,7 +113,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_lr = (uint32_t) _ctx_start; + mc->mc_srr0 = (uint32_t) _ctx_start; mc->mc_gpr[1] = (uint32_t) sp; /* new stack pointer */ mc->mc_gpr[14] = (uint32_t) start; /* r14 <- start */ mc->mc_gpr[15] = (uint32_t) ucp; /* r15 <- ucp */ |