Index: head/stand/ficl/ficl.h =================================================================== --- head/stand/ficl/ficl.h +++ head/stand/ficl/ficl.h @@ -249,7 +249,7 @@ ** complement of false... that unifies logical and bitwise operations ** nicely. */ -#define FICL_TRUE ((unsigned long)~(0L)) +#define FICL_TRUE ((FICL_UNS)~(0LL)) #define FICL_FALSE (0) #define FICL_BOOL(x) ((x) ? FICL_TRUE : FICL_FALSE) Index: head/stand/ficl/powerpc/sysdep.h =================================================================== --- head/stand/ficl/powerpc/sysdep.h +++ head/stand/ficl/powerpc/sysdep.h @@ -79,15 +79,15 @@ ** System dependent data type declarations... */ #if !defined INT32 -#define INT32 int +#define INT32 int32_t #endif #if !defined UNS32 -#define UNS32 unsigned int +#define UNS32 uint32_t #endif #if !defined UNS16 -#define UNS16 unsigned short +#define UNS16 uint16_t #endif #if !defined UNS8 @@ -367,6 +367,9 @@ */ #if !defined FICL_ALIGN #define FICL_ALIGN 2 +#endif + +#if !defined FICL_ALIGN_ADD #define FICL_ALIGN_ADD ((1 << FICL_ALIGN) - 1) #endif Index: head/stand/powerpc/ofw/main.c =================================================================== --- head/stand/powerpc/ofw/main.c +++ head/stand/powerpc/ofw/main.c @@ -63,7 +63,7 @@ { bzero(heap, HEAP_SIZE); - setheap(heap, (void *)((int)heap + HEAP_SIZE)); + setheap(heap, (void *)((uintptr_t)heap + HEAP_SIZE)); } uint64_t