[PATCH] mips: Fix store/load gp registers to/from ucontext_t
Gordana Cmiljanovic
Gordana.Cmiljanovic@imgtec.com
Wed May 17 13:41:00 GMT 2017
More details, not to be included in the commit message:
get/set/make/swap context implementations for MIPS O32
incorrectly assume general purpose registers are 32bit
but they are defined as 64bit in mcontext_t structure, as per:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/mips/sys/ucontext.h;h=f766dacd205f49a479f17b19df476a8103f55a2e;hb=refs/heads/master#l35
and
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/mips/sys/ucontext.h;h=f766dacd205f49a479f17b19df476a8103f55a2e;hb=refs/heads/master#l68
This leads to incorrect general purpose register values.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-Fix-store-load-gp-registers-to-from-ucontext_t.diff
Type: text/x-patch
Size: 11863 bytes
Desc: mips-Fix-store-load-gp-registers-to-from-ucontext_t.diff
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170517/d792ca28/attachment.bin>
More information about the Libc-alpha
mailing list