Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Avoid leaving junk in the top half of R0 on return.
details: https://anonhg.NetBSD.org/src/rev/6a469e014342
branches: trunk
changeset: 533481:6a469e014342
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Mon Jul 01 19:07:18 2002 +0000
description:
Avoid leaving junk in the top half of R0 on return.
This fixes port-arm/17440.
diffstat:
lib/libc/arch/arm/gen/byte_swap_2.S | 8 ++++----
sys/lib/libkern/arch/arm/byte_swap_2.S | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (44 lines):
diff -r 90f355ab6ef0 -r 6a469e014342 lib/libc/arch/arm/gen/byte_swap_2.S
--- a/lib/libc/arch/arm/gen/byte_swap_2.S Mon Jul 01 18:49:57 2002 +0000
+++ b/lib/libc/arch/arm/gen/byte_swap_2.S Mon Jul 01 19:07:18 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap_2.S,v 1.1 2000/12/29 20:13:47 bjh21 Exp $ */
+/* $NetBSD: byte_swap_2.S,v 1.2 2002/07/01 19:07:18 bjh21 Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -42,9 +42,9 @@
_ENTRY(_C_LABEL(ntohs))
_ENTRY(_C_LABEL(htons))
_PROF_PROLOGUE
- and r1, r0, #0xFF00
- mov r0, r0, lsl #8
- orr r0, r0, r1, lsr #8
+ and r1, r0, #0xff
+ mov r0, r0, lsr #8
+ orr r0, r0, r1, lsl #8
#ifdef __APCS_26__
movs pc, lr
#else
diff -r 90f355ab6ef0 -r 6a469e014342 sys/lib/libkern/arch/arm/byte_swap_2.S
--- a/sys/lib/libkern/arch/arm/byte_swap_2.S Mon Jul 01 18:49:57 2002 +0000
+++ b/sys/lib/libkern/arch/arm/byte_swap_2.S Mon Jul 01 19:07:18 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap_2.S,v 1.1 2000/12/29 20:51:57 bjh21 Exp $ */
+/* $NetBSD: byte_swap_2.S,v 1.2 2002/07/01 19:07:19 bjh21 Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -42,9 +42,9 @@
_ENTRY(_C_LABEL(ntohs))
_ENTRY(_C_LABEL(htons))
_PROF_PROLOGUE
- and r1, r0, #0xFF00
- mov r0, r0, lsl #8
- orr r0, r0, r1, lsr #8
+ and r1, r0, #0xff
+ mov r0, r0, lsr #8
+ orr r0, r0, r1, lsl #8
#ifdef __APCS_26__
movs pc, lr
#else
Home |
Main Index |
Thread Index |
Old Index