1 diff -urN libc23-cvstip-20040812/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S libc23/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2 --- libc23-cvstip-20040812/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S 2004-06-15 15:02:20.000000000 -0500
3 +++ libc23/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S 2004-08-30 18:22:17.372265184 -0500
9 stw r3,_FRAME_PARM_SAVE1(r1)
10 addi r3,r3,_UC_REG_SPACE+12
12 stw r0,_UC_GREGS+(PT_R0*4)(r3)
14 - stw r1,_UC_GREGS+(PT_R1*4)(r3)
16 stw r0,_UC_GREGS+(PT_LNK*4)(r3)
17 stw r0,_UC_GREGS+(PT_NIP*4)(r3)
18 stw r0,_FRAME_LR_SAVE+16(r1)
21 stw r0,_UC_GREGS+(PT_CCR*4)(r3)
23 + /* Save the value of R1. We had to push the stack before we
24 + had the address of uc_reg_space. So compute the address of
25 + the callers stack pointer and save it as R1. */
27 + stw r0,_UC_GREGS+(PT_R1*4)(r3)
28 /* Set the return value of getcontext to "success". R3 is the only
29 register whose value is not preserved in the saved context. */
34 /* Restore ucontext (parm1) from stack. */
35 - lwz r12,_FRAME_PARM_SAVE1+16(r1)
36 + lwz r12,_FRAME_PARM_SAVE1(r1)
38 stw r3,_UC_REGS_PTR(r12)
39 addi r5,r12,_UC_SIGMASK
40 diff -urN libc23-cvstip-20040812/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S libc23/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
41 --- libc23-cvstip-20040812/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S 2004-06-15 15:02:20.000000000 -0500
42 +++ libc23/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S 2004-08-30 18:22:36.391165968 -0500
48 /* Save the current context */
49 stw r3,_FRAME_PARM_SAVE1(r1)
50 addi r3,r3,_UC_REG_SPACE+12
52 stw r0,_UC_GREGS+(PT_R0*4)(r3)
53 - stw r1,_UC_GREGS+(PT_R1*4)(r3)
58 stw r31,_UC_GREGS+(PT_R31*4)(r3)
61 stw r0,_UC_GREGS+(PT_CCR*4)(r3)
63 + /* Save the value of R1. We had to push the stack before we
64 + had the address of uc_reg_space. So compute the address of
65 + the callers stack pointer and save it as R1. */
67 + stw r0,_UC_GREGS+(PT_R1*4)(r3)
69 /* Set the return value of swapcontext to "success". R3 is the only
70 register whose value is not preserved in the saved context. */
75 /* Restore ucontext (parm1) from stack. */
76 - lwz r12,_FRAME_PARM_SAVE1+16(r1)
77 + lwz r12,_FRAME_PARM_SAVE1(r1)
79 stw r3,_UC_REGS_PTR(r12)
80 addi r5,r12,_UC_SIGMASK