summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-10-10 13:22:41 +0000
committerobrien <obrien@FreeBSD.org>2000-10-10 13:22:41 +0000
commitabe86defcdc3a694c986305bf178f41a7b3fcf31 (patch)
tree9d066f565d2dd6affdca4125e64a39f9328752e3 /lib
parentdb661fd431b195ae21fcf59f33bd4271a4c7e64f (diff)
downloadFreeBSD-src-abe86defcdc3a694c986305bf178f41a7b3fcf31.zip
FreeBSD-src-abe86defcdc3a694c986305bf178f41a7b3fcf31.tar.gz
Inital PowerPC loader build support.
Submitted by: Benno Rice <benno@jeamland.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/Makefile5
-rw-r--r--lib/libstand/zalloc_defs.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index f895b0d..75e95af 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -21,6 +21,9 @@ CFLAGS+= -mno-fp-regs
.if ${MACHINE_ARCH} == "i386"
CFLAGS+= -mpreferred-stack-boundary=2
.endif
+.if ${MACHINE_ARCH} == "powerpc"
+CFLAGS+= -msoft-float
+.endif
# standalone components and stuff we have modified locally
@@ -33,7 +36,7 @@ SRCS+= strcasecmp.c
# string functions from libc
.PATH: ${.CURDIR}/../libc/string
-.if ${MACHINE_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"
SRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c memccpy.c memchr.c memcmp.c \
memcpy.c memmove.c memset.c qdivrem.c rindex.c strcat.c strchr.c \
strcmp.c strcpy.c strcspn.c strlen.c strncat.c strncmp.c strncpy.c \
diff --git a/lib/libstand/zalloc_defs.h b/lib/libstand/zalloc_defs.h
index 00696d6..c9aed8d 100644
--- a/lib/libstand/zalloc_defs.h
+++ b/lib/libstand/zalloc_defs.h
@@ -49,6 +49,10 @@ typedef int saddr_t; /* signed int same size as pointer */
typedef unsigned long iaddr_t; /* unsigned int same size as pointer */
typedef long saddr_t; /* signed int same size as pointer */
#endif
+#ifdef __powerpc__
+typedef unsigned int iaddr_t; /* unsigned int same size as pointer */
+typedef int saddr_t; /* signed int same size as pointer */
+#endif
#include "zalloc_mem.h"
OpenPOWER on IntegriCloud