aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S')
-rw-r--r--ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
index eea6867f9b..c3709575bc 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
@@ -53,6 +53,10 @@ ENTRY(__getcontext)
mov x2, sp
str x2, [x0, oSP]
+ /* Initialize the pstate. */
+ mov x3, #0
+ str x3, [x0, oPSTATE]
+
/* Figure out where to place the first context extension
block. */
add x2, x0, #oEXTENSION