|
@@ -22,6 +22,15 @@ void *memcpy(void *to, const void *from, size_t n)
|
|
from = cfrom;
|
|
from = cfrom;
|
|
n--;
|
|
n--;
|
|
}
|
|
}
|
|
|
|
+#if defined(CONFIG_M68000)
|
|
|
|
+ if ((long)from & 1) {
|
|
|
|
+ char *cto = to;
|
|
|
|
+ const char *cfrom = from;
|
|
|
|
+ for (; n; n--)
|
|
|
|
+ *cto++ = *cfrom++;
|
|
|
|
+ return xto;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
if (n > 2 && (long)to & 2) {
|
|
if (n > 2 && (long)to & 2) {
|
|
short *sto = to;
|
|
short *sto = to;
|
|
const short *sfrom = from;
|
|
const short *sfrom = from;
|