1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-05-30 04:04:54 +03:00
Gordana Cmiljanovic b309f058cf mips: Fix store/load gp registers to/from ucontext_t
General purpose registers in mcontext_t structure
are 8 bytes long for both MIPS32/MIPS64.

get/set/make/swap context implementations for MIPS O32
incorrectly assume that general purpose registers
in this structure are 4 bytes long.

This patch is fixing that.

Tested for MIPS O32 LE and BE.
Compared objdump of modified functions for mips n32 and mips n64.

	[BZ #21548]
	* sysdeps/unix/sysv/linux/mips/getcontext.S: Define MCONTEXT_SZGREG as
	8 and use it when copying general purpose registers.
	* sysdeps/unix/sysv/linux/mips/makecontext.S: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips32/Makefile: Include new test for
	mips o32.
	* sysdeps/unix/sysv/linux/mips/mips32/bug-getcontext-mips-gp.c: Added
	new test for mips o32.
	* sysdeps/unix/sysv/linux/mips/setcontext.S: Define MCONTEXT_SZGREG as
	8 and use it when copying general purpose registers.
	* sysdeps/unix/sysv/linux/mips/swapcontext.S: Likewise.
2017-06-13 21:34:45 +00:00
..
2017-05-31 17:35:46 -03:00
2017-06-07 11:11:38 +05:30
2017-06-07 11:11:38 +05:30
2017-05-11 17:27:27 -03:00
2017-05-18 18:06:47 -03:00
2017-05-09 14:05:09 +00:00
2017-05-20 19:04:43 -04:00
2017-05-18 18:06:47 -03:00
2017-05-11 15:49:10 -03:00
2017-05-11 15:49:10 -03:00
2017-05-18 18:06:47 -03:00
2017-05-03 10:36:01 -03:00
2017-05-31 17:35:46 -03:00
2017-05-09 14:05:09 +00:00
2017-05-11 17:27:30 -03:00
2017-05-11 17:27:31 -03:00
2017-03-09 15:22:06 +01:00
2017-03-09 15:22:06 +01:00
2017-03-28 12:29:27 -03:00
2017-05-09 14:05:09 +00:00
2017-05-09 14:05:09 +00:00
2017-03-28 12:29:27 -03:00
2017-03-09 15:22:06 +01:00
2017-03-30 18:23:43 -03:00
2017-05-11 17:27:30 -03:00