From: Haavard Skinnemoen <hskinnemoen@atmel.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, Haavard Skinnemoen <hskinnemoen@atmel.com>
Subject: [PATCH] AVR32: Fix bug in __avr32_asr64
Date: Tue, 01 Aug 2006 16:39:51 +0200 [thread overview]
Message-ID: <11544431912734-git-send-email-hskinnemoen@atmel.com> (raw)
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
reply other threads:[~2006-08-01 14:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11544431912734-git-send-email-hskinnemoen@atmel.com \
--to=hskinnemoen@atmel.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®