summaryrefslogtreecommitdiff
path: root/lib/libc/arch/aarch64/gen/byte_swap_2.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/aarch64/gen/byte_swap_2.S')
-rw-r--r--lib/libc/arch/aarch64/gen/byte_swap_2.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/arch/aarch64/gen/byte_swap_2.S b/lib/libc/arch/aarch64/gen/byte_swap_2.S
index 5bd951ee8a4..76b7db58c5c 100644
--- a/lib/libc/arch/aarch64/gen/byte_swap_2.S
+++ b/lib/libc/arch/aarch64/gen/byte_swap_2.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: byte_swap_2.S,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: byte_swap_2.S,v 1.2 2018/08/12 17:15:10 mortimer Exp $ */
/* $NetBSD: byte_swap_2.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $ */
/*-
@@ -36,7 +36,9 @@ _ENTRY(_C_LABEL(__bswap16))
_ENTRY(_C_LABEL(ntohs))
_ENTRY(_C_LABEL(htons))
_PROF_PROLOGUE
+ RETGUARD_SETUP(__bswap16, x15)
and w8, w0, #0xffff
ubfx w0, w0, #8, #8
bfi w0, w8, #8, #16
+ RETGUARD_CHECK(__bswap16, x15)
ret