summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/boot2/Makefile
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2011-04-04 18:23:55 +0000
committerrdivacky <rdivacky@FreeBSD.org>2011-04-04 18:23:55 +0000
commitfd38f1e08c79f1ed404956cc8814525593d9c72b (patch)
tree4f539c150145f8900b8b1d5b6c731a99b586cb75 /sys/boot/i386/boot2/Makefile
parent8f7c029680ef6333e0c565669b17871d25a57203 (diff)
downloadFreeBSD-src-fd38f1e08c79f1ed404956cc8814525593d9c72b.zip
FreeBSD-src-fd38f1e08c79f1ed404956cc8814525593d9c72b.tar.gz
Build boot2 with -mregparm=3, ie. pass upto 3 arguments via registers.
This modifies CFLAGS and tweaks sio.S to use the new calling convention. The sio_init() and sio_putc() prototypes are modified so that other users of this code know the correct calling convention. This makes the code smaller when compiled with clang. Reviewed by: jhb Tested by: me and Freddie Cash <fjwcash gmail com>
Diffstat (limited to 'sys/boot/i386/boot2/Makefile')
-rw-r--r--sys/boot/i386/boot2/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 6e8315e..d9b91df 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -31,6 +31,7 @@ CFLAGS= -Os \
-fno-unit-at-a-time \
-mno-align-long-strings \
-mrtd \
+ -mregparm=3 \
-D${BOOT2_UFS} \
-DFLAGS=${BOOT_BOOT1_FLAGS} \
-DSIOPRT=${BOOT_COMCONSOLE_PORT} \
OpenPOWER on IntegriCloud