about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@caviumnetworks.com>2013-09-30 10:58:26 +0100
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>2013-09-30 10:58:26 +0100
commit995a05b173d110e6259d35bdd0aa7e4754b7ac87 (patch)
tree507641515e14e24e53084d183ece39ad63691e8f
parentb2179107f3eabb5e349333cd5adc6e2fb4431990 (diff)
downloadglibc-995a05b173d110e6259d35bdd0aa7e4754b7ac87.tar.gz
glibc-995a05b173d110e6259d35bdd0aa7e4754b7ac87.tar.xz
glibc-995a05b173d110e6259d35bdd0aa7e4754b7ac87.zip
[AArch64] Fix BE access to errno.
-rw-r--r--ports/ChangeLog.aarch645
-rw-r--r--ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64
index 3daf3ed495..cebf5055d5 100644
--- a/ports/ChangeLog.aarch64
+++ b/ports/ChangeLog.aarch64
@@ -1,3 +1,8 @@
+2013-09-30  Andrew Pinski <andrew.pinski@caviumnetworks.com>
+
+	* sysdeps/unix/sysv/linux/aarch64/sysdep.h (SYSCALL_ERROR_HANDLER):
+	Fix store to errno to use 32bits.
+
 2013-09-24  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
 
 	* sysdeps/aarch64/machine-gmon.h (__mcount): Accept parameter and
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
index 849c904992..9a7b16735c 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
@@ -134,7 +134,7 @@ __local_syscall_error:						\
         str     x19, [sp,16];					\
 	neg	x19, x0;					\
 	bl	C_SYMBOL_NAME(__errno_location);		\
-	str	x19, [x0];					\
+	str	w19, [x0];					\
 	mov	x0, -1;						\
         ldr     x19, [sp,16];					\
         ldp     x29, x30, [sp], 32;				\