mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
[AArch64] Ensure getcontext() initializes PSTATE.
This commit is contained in:
parent
d180203e97
commit
6e445a3d2b
@ -1,3 +1,9 @@
|
|||||||
|
2013-06-04 Marcus Shawcroft <marcus.shawcroft@linaro.org>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext):
|
||||||
|
Initialize pstate.
|
||||||
|
* sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oPSTATE): Define.
|
||||||
|
|
||||||
2013-05-29 Siddhesh Poyarekar <siddhesh@redhat.com>
|
2013-05-29 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
[BZ #15465]
|
[BZ #15465]
|
||||||
|
@ -53,6 +53,10 @@ ENTRY(__getcontext)
|
|||||||
mov x2, sp
|
mov x2, sp
|
||||||
str x2, [x0, oSP]
|
str x2, [x0, oSP]
|
||||||
|
|
||||||
|
/* Initialize the pstate. */
|
||||||
|
mov x3, #0
|
||||||
|
str x3, [x0, oPSTATE]
|
||||||
|
|
||||||
/* Figure out where to place the first context extension
|
/* Figure out where to place the first context extension
|
||||||
block. */
|
block. */
|
||||||
add x2, x0, #oEXTENSION
|
add x2, x0, #oEXTENSION
|
||||||
|
@ -37,6 +37,7 @@ STACK_FLAGS stack (ss_flags)
|
|||||||
oX0 mcontext (regs)
|
oX0 mcontext (regs)
|
||||||
oSP mcontext (sp)
|
oSP mcontext (sp)
|
||||||
oPC mcontext (pc)
|
oPC mcontext (pc)
|
||||||
|
oPSTATE mcontext (pstate)
|
||||||
oEXTENSION mcontext (__reserved)
|
oEXTENSION mcontext (__reserved)
|
||||||
|
|
||||||
#define fpsimd_context(member) offsetof (struct fpsimd_context, member)
|
#define fpsimd_context(member) offsetof (struct fpsimd_context, member)
|
||||||
|
Loading…
Reference in New Issue
Block a user