]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Disable loop unrolling in skein for sys/boot
authorAllan Jude <allanjude@FreeBSD.org>
Thu, 6 Oct 2016 03:32:30 +0000 (03:32 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Thu, 6 Oct 2016 03:32:30 +0000 (03:32 +0000)
commit3595d72f8696cd6d27581868201f971f164d2df1
tree7f33d3ecf2f260fbcd109857ae71c1510be8d326
parent8eb92614fda08673fe0b3fd430fe2b9917a049ba
Disable loop unrolling in skein for sys/boot

When tsoome@ added skein support to the ZFS boot code and zfsloader, it
resulted in an explosion in code size, running close to a number of
limits.

The default for the C version of skein is to unroll all loops for
skein-256 and 512

Disabling the loop unrolling saves 20-28kb from each binary
boot1.efi
gptzfsboot
loader.efi
userboot.so
zfsloader

Reviewed by: emaste, tsoome
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D7826
sys/boot/efi/boot1/Makefile
sys/boot/efi/loader/Makefile
sys/boot/i386/gptzfsboot/Makefile
sys/boot/i386/zfsboot/Makefile
sys/boot/userboot/zfs/Makefile
sys/boot/zfs/Makefile