ntdll: Include d0-d15 in RtlCaptureContext.

We ideally should back up all of d0-d31, but when building in ELF
form, only d0-d15 are normally available (with common distributions'
default compilers), unless object files are built with flags to enable
support for d16-d31 (with e.g. -mfpu=neon).

Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Martin Storsjö 2021-11-09 16:05:50 +02:00 committed by Alexandre Julliard
parent 611911ca05
commit b2934dd98f
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ __ASM_STDCALL_FUNC( RtlCaptureContext, 4,
"str r1, [r0, #0x3c]\n\t" /* context->Lr */
"add r0, #0x0c\n\t"
"stm r0, {r2-r12}\n\t" /* context->R2..R12 */
#ifndef __SOFTFP__
"add r0, #0x44\n\t" /* 0x50 - 0x0c */
"vstm r0, {d0-d15}\n\t" /* context->D0-D15 */
#endif
"bx lr" )