diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2011-04-04 18:23:55 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2011-04-04 18:23:55 +0000 |
commit | fd38f1e08c79f1ed404956cc8814525593d9c72b (patch) | |
tree | 4f539c150145f8900b8b1d5b6c731a99b586cb75 /sys/boot/i386/boot2/Makefile | |
parent | 8f7c029680ef6333e0c565669b17871d25a57203 (diff) | |
download | FreeBSD-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/Makefile | 1 |
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} \ |