/uspace/trunk/libc/arch/ppc32/include/endian.h |
---|
36,5 → 36,3 |
#define __BYTE_ORDER __BIG_ENDIAN |
#endif |
/uspace/trunk/libc/arch/ppc32/include/limits.h |
---|
29,11 → 29,9 |
#ifndef __ppc32__LIMITS_H__ |
#define __ppc32__LIMITS_H__ |
# define LONG_MIN MIN_INT32 |
# define LONG_MAX MAX_INT32 |
# define ULONG_MIN MIN_UINT32 |
# define ULONG_MAX MAX_UINT32 |
#define LONG_MIN MIN_INT32 |
#define LONG_MAX MAX_INT32 |
#define ULONG_MIN MIN_UINT32 |
#define ULONG_MAX MAX_UINT32 |
#endif |
/uspace/trunk/libc/arch/ppc32/include/thread.h |
---|
29,18 → 29,6 |
#ifndef __LIBC__ppc32__THREAD_H__ |
#define __LIBC__ppc32__THREAD_H__ |
/* I did not find any specification (neither MIPS nor PowerPC), but |
* as I found it |
* - it uses Variant II |
* - TCB is at Address(First TLS Block)+0x7000. |
* - DTV is at Address(First TLS Block)+0x8000 |
* - What would happen if the TLS data was larger then 0x7000? |
* - The linker never accesses DTV directly, has the second definition any |
* sense? |
* We will make it this way: |
* - TCB is at TP-0x7000-sizeof(tcb) |
* - No assumption about DTV etc., but it will not have a fixed address |
*/ |
#define PPC_TP_OFFSET 0x7000 |
typedef struct { |
/uspace/trunk/libc/arch/ppc32/Makefile.inc |
---|
36,5 → 36,6 |
arch/$(ARCH)/src/psthread.S \ |
arch/$(ARCH)/src/thread.c |
CFLAGS += -msoft-float |
CFLAGS += -mcpu=powerpc -msoft-float -m32 |
AFLAGS += -a32 |
LFLAGS += -N |