From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] H8/300 inline cleanup
Date: Wed, 10 Nov 2004 13:55:16 +0900 [thread overview]
Message-ID: <m21xf2qp57.wl%ysato@users.sourceforge.jp> (raw)
Eliminate useless clobber.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
diff -Nru a/include/asm-h8300/delay.h b/include/asm-h8300/delay.h
--- a/include/asm-h8300/delay.h 2004-11-10 01:06:35 +09:00
+++ b/include/asm-h8300/delay.h 2004-11-10 01:06:35 +09:00
@@ -11,11 +11,10 @@
extern __inline__ void __delay(unsigned long loops)
{
- __asm__ __volatile__ ("mov.l %0,er0\n\t"
- "1:\n\t"
- "dec.l #1,er0\n\t"
+ __asm__ __volatile__ ("1:\n\t"
+ "dec.l #1,%0\n\t"
"bne 1b"
- ::"r" (loops):"er0");
+ :"=r" (loops):"0"(loops));
}
/*
diff -Nru a/include/asm-h8300/system.h b/include/asm-h8300/system.h
--- a/include/asm-h8300/system.h 2004-11-10 01:06:35 +09:00
+++ b/include/asm-h8300/system.h 2004-11-10 01:06:35 +09:00
@@ -2,7 +2,6 @@
#define _H8300_SYSTEM_H
#include <linux/config.h> /* get configuration macros */
-#include <linux/kernel.h>
#include <linux/linkage.h>
#define prepare_to_switch() do { } while(0)
@@ -119,7 +118,7 @@
__asm__ __volatile__
("mov.b %2,%0\n\t"
"mov.b %1,%2"
- : "=&r" (tmp) : "r" (x), "m" (*__xg(ptr)) : "er0","memory");
+ : "=&r" (tmp) : "r" (x), "m" (*__xg(ptr)) : "memory");
break;
case 2:
__asm__ __volatile__
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
reply other threads:[~2004-11-10 4:55 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=m21xf2qp57.wl%ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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
Powered by JetHome