diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2002-03-06 10:43:18 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2002-03-06 10:43:18 +0000 |
commit | 55f26f11945e4cbacfdaff197ff5220ee7417e9f (patch) | |
tree | 6167bc80a49aa118e2594c34a5b1c4d072209453 /newlib/libc/machine/sh/asm.h | |
parent | 6f6aa16f75b106a2efb470be06c6ccb0a09265cd (diff) | |
download | cygnal-55f26f11945e4cbacfdaff197ff5220ee7417e9f.tar.gz cygnal-55f26f11945e4cbacfdaff197ff5220ee7417e9f.tar.bz2 cygnal-55f26f11945e4cbacfdaff197ff5220ee7417e9f.zip |
* Makefile.am (lib_a_SOURCES, SH64 case): Add memcpy.S, memset.S
and strcpy.S.
* Makefile.in: Regenerate.
* asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
(SHHI, SHLO): Define.
* memcpy.S: Add code for SH5.
* memset.S: Likewise.
* strcpy.S: Likewise.
Diffstat (limited to 'newlib/libc/machine/sh/asm.h')
-rw-r--r-- | newlib/libc/machine/sh/asm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/newlib/libc/machine/sh/asm.h b/newlib/libc/machine/sh/asm.h index cfdaa812b..2f809afa2 100644 --- a/newlib/libc/machine/sh/asm.h +++ b/newlib/libc/machine/sh/asm.h @@ -13,7 +13,7 @@ # endif # define _ENTRY(name) \ - TEXT; .align 4; .globl name; name: + TEXT; .balign 8; .globl name; name: #else #define _ENTRY(name) \ .text; .align 2; .globl name; name: @@ -31,3 +31,11 @@ #define SL(branch, dest, in_slot, in_slot_arg2) \ in_slot, in_slot_arg2; branch dest #endif + +#ifdef __LITTLE_ENDIAN__ +#define SHHI shlld +#define SHLO shlrd +#else +#define SHHI shlrd +#define SHLO shlld +#endif |