diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-09-28 16:42:21 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-09-28 16:42:21 +0000 |
commit | 6c249577fbcdbb3d34747d8ba1b7d5920ef5f2ab (patch) | |
tree | ad02b8119806819c0ab895dfb4cc1f332404da47 /newlib/libc/include/machine | |
parent | 587b75f7bdac34df1cef09ea70b0fbd88a27ff16 (diff) | |
download | cygnal-6c249577fbcdbb3d34747d8ba1b7d5920ef5f2ab.tar.gz cygnal-6c249577fbcdbb3d34747d8ba1b7d5920ef5f2ab.tar.bz2 cygnal-6c249577fbcdbb3d34747d8ba1b7d5920ef5f2ab.zip |
2009-09-28 Michael Eager <eager@eagercon.com>
* configure.host: Add microblaze.
* libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
* libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
* libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
_UNIX98_THREAD_MUTEX_ATTRIBUTES.
* libc/include/sys/types.h: Treat XMK like rtems, define
PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
* libc/machine/configure.in: Add microblaze.
* libc/machine/configure: Add microblaze (not regenerated).
* libc/machine/microblaze/configure.in: NEW.
* libc/machine/microblaze/configure: Generate.
* libc/machine/microblaze/Makefile.am: NEW.
* libc/machine/microblaze/Makefile.in: Generate.
* libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
mallocr.c, longjmp.S, setjmp.S}: NEW.
* libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
mALLOc(): return malloc value.
Diffstat (limited to 'newlib/libc/include/machine')
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 4 | ||||
-rw-r--r-- | newlib/libc/include/machine/setjmp.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index 7b6280fcd..70846c92c 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -322,6 +322,10 @@ #endif #endif +#ifdef __MICROBLAZE__ +#define __IEEE_BIG_ENDIAN +#endif + #ifndef __IEEE_BIG_ENDIAN #ifndef __IEEE_LITTLE_ENDIAN #error Endianess not declared!! diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h index 7ffb7d7e6..4b1c3d296 100644 --- a/newlib/libc/include/machine/setjmp.h +++ b/newlib/libc/include/machine/setjmp.h @@ -140,6 +140,11 @@ _BEGIN_STD_C #define _JBTYPE double #endif +#ifdef __MICROBLAZE__ +#define _JBLEN 20 +#define _JBTYPE unsigned int +#endif + #ifdef __hppa__ /* %r30, %r2-%r18, %r27, pad, %fr12-%fr15. Note space exists for the FP registers, but they are not |