]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Build boot2 with -mregparm=3, ie. pass upto 3 arguments via registers.
authorRoman Divacky <rdivacky@FreeBSD.org>
Mon, 4 Apr 2011 18:23:55 +0000 (18:23 +0000)
committerRoman Divacky <rdivacky@FreeBSD.org>
Mon, 4 Apr 2011 18:23:55 +0000 (18:23 +0000)
commit57ac2e12864ebb180d4cae67d544d2f5d5c614c0
tree4f539c150145f8900b8b1d5b6c731a99b586cb75
parentaa977fc70edd8a9b94515f72a346bd40ca462891
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>
sys/boot/i386/boot2/Makefile
sys/boot/i386/boot2/lib.h
sys/boot/i386/boot2/sio.S