svn commit: r291485 - head/sys/arm64/arm64

Konstantin Belousov kib at FreeBSD.org
Mon Nov 30 10:17:15 UTC 2015


Author: kib
Date: Mon Nov 30 10:17:13 2015
New Revision: 291485
URL: https://svnweb.freebsd.org/changeset/base/291485

Log:
  Remove unneeded instructions.
  
  Reviewed by:	andrew
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm64/arm64/support.S

Modified: head/sys/arm64/arm64/support.S
==============================================================================
--- head/sys/arm64/arm64/support.S	Mon Nov 30 10:04:13 2015	(r291484)
+++ head/sys/arm64/arm64/support.S	Mon Nov 30 10:17:13 2015	(r291485)
@@ -60,7 +60,6 @@ ENTRY(casueword32)
 	b.ne	2f			/* Not equal, exit */
 	stxr	w5, w3, [x0]		/* Store the new data */
 	cbnz	w5, 1b			/* Retry on failure */
-	ldrb	w0, [x0]		/* Try loading the data */
 2:	SET_FAULT_HANDLER(xzr, x5)	/* Reset the fault handler */
 	str	w4, [x2]		/* Store the read data */
 	mov	x0, #0			/* Success */
@@ -81,7 +80,6 @@ ENTRY(casueword)
 	b.ne	2f			/* Not equal, exit */
 	stxr	w5, x3, [x0]		/* Store the new data */
 	cbnz	w5, 1b			/* Retry on failure */
-	ldrb	w0, [x0]		/* Try loading the data */
 2:	SET_FAULT_HANDLER(xzr, x5)	/* Reset the fault handler */
 	str	x4, [x2]		/* Store the read data */
 	mov	x0, #0			/* Success */


More information about the svn-src-head mailing list