[SeaBIOS] [PATCH 13/13] Drop handle_post() from image for CSM build
Kevin O'Connor
kevin at koconnor.net
Sun Feb 3 01:40:21 CET 2013
On Mon, Jan 28, 2013 at 04:23:46PM +0000, David Woodhouse wrote:
> From: David Woodhouse <David.Woodhouse at intel.com>
>
> This removes 25KiB of unused cruft from the image, crucially making the
> difference between a 128KiB image (which works with OVMF) and a 256KiB
> image (which doesn't).
[...]
> +#if !CONFIG_CSM
> // 32bit elf entry point
> EXPORTFUNC entry_elf
> entry_elf:
Instead of adding #if statements to the assembler one can add a "if
(CONFIG_CSM) return" to handle_post(). (Or, even better would be to
add "if (!CONFIG_QEMU) return" to handle_post).
-Kevin
More information about the SeaBIOS
mailing list