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]

Bug in s/390 user context code.





Hi,
I just finished testing glibc-2.2.3pre2 and "make tests" reported
one problem. getcontext, setcontext and swapcontext did not return
the correct values. I append a patch for this problem.

2001-04-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>

     * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Fix return
       value of getcontext.
     * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
     * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Fix return
       value of setcontext.
     * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
     * sysdeps/unix/sysv/linux/s390/swapcontext.c: Skip setcontext
       call by changing the saved context.

(See attached file: contextbug.diff)

blue skies,
   Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH
Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: schwidefsky@de.ibm.com

contextbug.diff


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