Commit d1959327 authored by Yoshinori Sato's avatar Yoshinori Sato Committed by Linus Torvalds

[PATCH] H8/300 inline cleanup

Eliminate useless clobber.
Signed-off-by: default avatarYoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 34d7bed1
...@@ -11,11 +11,10 @@ ...@@ -11,11 +11,10 @@
extern __inline__ void __delay(unsigned long loops) extern __inline__ void __delay(unsigned long loops)
{ {
__asm__ __volatile__ ("mov.l %0,er0\n\t" __asm__ __volatile__ ("1:\n\t"
"1:\n\t" "dec.l #1,%0\n\t"
"dec.l #1,er0\n\t"
"bne 1b" "bne 1b"
::"r" (loops):"er0"); :"=r" (loops):"0"(loops));
} }
/* /*
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#define _H8300_SYSTEM_H #define _H8300_SYSTEM_H
#include <linux/config.h> /* get configuration macros */ #include <linux/config.h> /* get configuration macros */
#include <linux/kernel.h>
#include <linux/linkage.h> #include <linux/linkage.h>
#define prepare_to_switch() do { } while(0) #define prepare_to_switch() do { } while(0)
...@@ -119,7 +118,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz ...@@ -119,7 +118,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
__asm__ __volatile__ __asm__ __volatile__
("mov.b %2,%0\n\t" ("mov.b %2,%0\n\t"
"mov.b %1,%2" "mov.b %1,%2"
: "=&r" (tmp) : "r" (x), "m" (*__xg(ptr)) : "er0","memory"); : "=&r" (tmp) : "r" (x), "m" (*__xg(ptr)) : "memory");
break; break;
case 2: case 2:
__asm__ __volatile__ __asm__ __volatile__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment