public inbox for
 help / color / mirror / Atom feed
From: Marcus Shawcroft <>
To: libc-ports <>
Subject: [COMMITTED] AArch64 simplify getcontext.S initialization of pstate.
Date: Fri, 28 Jun 2013 10:39:00 -0000	[thread overview]
Message-ID: <> (raw)

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]


This patch simplifies the initialization of the pstate field as
suggested by Richard Henderson here:


2013-06-28  Marcus Shawcroft  <>

* sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Simplify
oPSTATE initialization.

[-- Attachment #2: fix-pstate-init.diff --]
[-- Type: application/octet-stream, Size: 496 bytes --]

diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
index c370957..2ba4804 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
@@ -54,8 +54,7 @@ ENTRY(__getcontext)
 	str     x2, [x0, oSP]
 	/* Initialize the pstate.  */
-	mov	x3, #0
-	str	x3, [x0, oPSTATE]
+	str	xzr, [x0, oPSTATE]
 	/* Figure out where to place the first context extension
 	   block.  */

                 reply	other threads:[~2013-06-28 10:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).