diff options
-rw-r--r-- | sys/boot/ficl/Makefile | 3 | ||||
-rw-r--r-- | sys/boot/i386/Makefile.inc | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index 88e32995bbba..4f19de874cac 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -7,6 +7,9 @@ CLEANFILES= softcore.c testmain testmain.o .if ${MACHINE_ARCH} == "alpha" CFLAGS+= -mno-fp-regs .endif +.if ${MACHINE_ARCH} == "i386" +CFLAGS+= -mpreferred-stack-boundary=2 +.endif .ifmake testmain CFLAGS+= -DTESTMAIN -D_TESTMAIN SRCS+= testmain.c diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc index 4c20c10ac163..fa5ea569e609 100644 --- a/sys/boot/i386/Makefile.inc +++ b/sys/boot/i386/Makefile.inc @@ -3,3 +3,4 @@ # $FreeBSD$ LOADER_ADDRESS?= 0x200000 +CFLAGS+= -mpreferred-stack-boundary=2 |