about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-12-19 15:34:16 +0000
committerUlrich Drepper <drepper@redhat.com>2006-12-19 15:34:16 +0000
commita12dcecc507ec5a2fc6b82bd1918357ac58b7da8 (patch)
treeb76f17f0e1ea03d69661127c23f7aff6e95b074b /sysdeps/unix/sysv
parent594d423aa3ed05263d386ff32af9edcf6a7696fc (diff)
downloadglibc-a12dcecc507ec5a2fc6b82bd1918357ac58b7da8.tar.gz
glibc-a12dcecc507ec5a2fc6b82bd1918357ac58b7da8.tar.xz
glibc-a12dcecc507ec5a2fc6b82bd1918357ac58b7da8.zip
* stdlib/Makefile (tests): Add tst-makecontext.
	* stdlib/tst-makecontext.c: New test.

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
	(__makecontext): Don't realign uc_mcontext.uc_regs.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
index 208a375ef3..9451f9eb36 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
@@ -26,9 +26,7 @@
 
 ENTRY(__makecontext)
 	/* Set up the first 7 args to the function in its registers */
-	addi	r11,r3,_UC_REG_SPACE+12
-	clrrwi  r11,r11,4
-	stw	r11,_UC_REGS_PTR(r3)
+	lwz	r11,_UC_REGS_PTR(r3)
 	stw	r6,_UC_GREGS+(PT_R3*4)(r11)
 	stw	r7,_UC_GREGS+(PT_R4*4)(r11)
 	stw	r8,_UC_GREGS+(PT_R5*4)(r11)