mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] AVR32: Fix bug in __avr32_asr64
@ 2006-08-01 14:39 Haavard Skinnemoen
  0 siblings, 0 replies; only message in thread
From: Haavard Skinnemoen @ 2006-08-01 14:39 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Haavard Skinnemoen

libgcc uses a logical shift right instruction in one place we're
using an arithmetic shift right. I believe libgcc is right.

This fixes some weirdness in the timer code that I've seen lately.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
---
 arch/avr32/lib/__avr32_asr64.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/avr32/lib/__avr32_asr64.S b/arch/avr32/lib/__avr32_asr64.S
index cbbd478..368b6bc 100644
--- a/arch/avr32/lib/__avr32_asr64.S
+++ b/arch/avr32/lib/__avr32_asr64.S
@@ -20,8 +20,8 @@ __avr32_asr64:
 	brle	1f
 
 	lsl	r8, r11, r9
+	lsr	r10, r10, r12
 	asr	r11, r11, r12
-	asr	r10, r10, r12
 	or	r10, r8
 	retal	r12
 
-- 
1.4.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-01 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-01 14:39 [PATCH] AVR32: Fix bug in __avr32_asr64 Haavard Skinnemoen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®