linux/arch/x86/boot/compressed
H. Peter Anvin 36d3793c94 x86, boot: use appropriate rep string for move and clear
In the pre-decompression code, use the appropriate largest possible
rep movs and rep stos to move code and clear bss, respectively.  For
reverse copy, do note that the initial values are supposed to be the
address of the first (highest) copy datum, not one byte beyond the end
of the buffer.

rep strings are not necessarily the fastest way to perform these
operations on all current processors, but are likely to be in the
future, and perhaps more importantly, we want to encourage the
architecturally right thing to do here.

This also fixes a couple of trivial inefficiencies on 64 bits.

[ Impact: trivial performance enhancement, increase code similarity ]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-08 17:34:52 -07:00
..
.gitignore .gitignore updates 2008-10-30 11:38:45 -07:00
Makefile x86, boot: follow standard Kbuild style for compression suffix 2009-05-08 17:16:22 -07:00
head_32.S x86, boot: use appropriate rep string for move and clear 2009-05-08 17:34:52 -07:00
head_64.S x86, boot: use appropriate rep string for move and clear 2009-05-08 17:34:52 -07:00
misc.c bzip2/lzma: x86 kernel compression support 2009-01-04 15:53:35 -08:00
relocs.c x86 setup: correct segfault in generation of 32-bit reloc kernel 2008-10-03 13:42:04 -07:00
vmlinux.lds.S x86, boot: straighten out ranges to copy/zero in compressed/head*.S 2009-05-08 17:18:10 -07:00
vmlinux.scr x86: unify arch/x86/boot/compressed/vmlinux_??.scr 2008-01-30 13:33:38 +01:00