This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix sigprocmask call in ia64/getcontext


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]