summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2017-05-30 10:50:15 +0000
committerandrew <andrew@FreeBSD.org>2017-05-30 10:50:15 +0000
commit1f3c97ecfed994b264c7f384f0cecac12f34eabf (patch)
tree9e42f434421276c734d9352972fc9e0bbfc58710 /lib
parent05db7d75b3867981e6da49c4d76db6464830549f (diff)
downloadFreeBSD-src-1f3c97ecfed994b264c7f384f0cecac12f34eabf.zip
FreeBSD-src-1f3c97ecfed994b264c7f384f0cecac12f34eabf.tar.gz
MFC r312703:
Fix the error value we write in cerror. __error returns an int *, however we were writing a 64 bit value meaning the 32 bits after this would be trashed.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/aarch64/sys/cerror.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/aarch64/sys/cerror.S b/lib/libc/aarch64/sys/cerror.S
index 9d87275..7e1627d 100644
--- a/lib/libc/aarch64/sys/cerror.S
+++ b/lib/libc/aarch64/sys/cerror.S
@@ -34,7 +34,7 @@ ENTRY(cerror)
stp x0, lr, [sp]
bl _C_LABEL(__error)
ldp x1, lr, [sp]
- str x1, [x0]
+ str w1, [x0]
movn x0, #0
movn x1, #0
add sp, sp, #16
OpenPOWER on IntegriCloud