Fix sigprocmask call in ia64/getcontext

Andreas Schwab schwab@suse.de
Fri Sep 26 08:35:00 GMT 2003


When setcontext was fixed the same bug in getcontext was left alone.

Andreas.

2003-09-26  Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
	rt_sigprocmask system call.

--- sysdeps/unix/sysv/linux/ia64/getcontext.S.~1.7.~	2003-03-28 10:11:41.000000000 +0100
+++ sysdeps/unix/sysv/linux/ia64/getcontext.S	2003-09-26 10:25:18.000000000 +0200
@@ -35,7 +35,7 @@
 
 ENTRY(__getcontext)
 	.prologue
-	alloc r16 = ar.pfs, 1, 0, 3, 0
+	alloc r16 = ar.pfs, 1, 0, 4, 0
 
 	// sigprocmask (SIG_BLOCK, NULL, &sc->sc_mask):
 
@@ -45,6 +45,7 @@ ENTRY(__getcontext)
 	mov out0 = SIG_BLOCK
 	mov out1 = 0
 	add out2 = r2, in0
+	mov out3 = 8	// sizeof kernel sigset_t
 
 	break __BREAK_SYSCALL
 	flushrs					// save dirty partition on rbs

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-hacker mailing list