mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Inital PowerPC loader build support.
Submitted by: Benno Rice <benno@jeamland.net>
This commit is contained in:
parent
8bbe68c46b
commit
26d9c22460
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66929
@ -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 \
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user