Hi Geert Thank you for your feedback > --- a/arch/sh/include/asm/string_32.h > +++ b/arch/sh/include/asm/string_32.h > @@ -40,15 +40,15 @@ static inline char *strncpy(char *__dest, const > char *__src, size_t __n) > __asm__ __volatile__( > "1:\n" > "mov.b @%1+, %2\n\t" > - "mov.b %2, @%0\n\t" > + "mov.b %2, @%0+\n\t" > "cmp/eq #0, %2\n\t" > "bt/s 2f\n\t" > - " cmp/eq %5,%1\n\t" > + " cmp/eq %5,%0\n\t" > "bf/s 1b\n\t" > - " add #1, %0\n" > + " nop\n" > "2:" > : "=r" (__dest), "=r" (__src), "=&z" (__dummy) > - : "0" (__dest), "1" (__src), "r" (__src+__n) > + : "0" (__dest), "1" (__src), "r" (__dest+__n) > : "memory", "t"); > > return __xdest; > > Does this make sense? > Can it be improved, by putting something useful in the delay slot? Unfortunately, I can't test it :( Can someone test it ? Thank you for your help !! Best regards --- Kuninori Morimoto