[syslinux] [PATCH 12/19] com32: Delete execute.c and use the one from ldlinux
H. Peter Anvin
hpa at zytor.com
Mon Mar 26 15:36:07 PDT 2012
On 03/23/2012 11:02 AM, Matt Fleming wrote:
> From: Matt Fleming <matt.fleming at intel.com>
>
> ldlinux provides us with an execute.c and all the functions that we
> need, there's no point in duplicating the code in com32/menu.
>
> Also, the copy in ldlinux doesn't use __com32.cs_bounce. Using
> cs_bounce no longer works with dynamic ELF modules because we don't
> have such tight control over the address space. Instead, memory must
> be allocated dynamically or reserved as part of the object file.
>
> Signed-off-by: Matt Fleming <matt.fleming at intel.com>
It's probably worth noting that even in the 4.xx branches the use of
__com32.cs_bounce is frowned upon nowadays; the recommended way is to
use lmalloc()/lfree(). Even those functions only make sense on BIOS, of
course.
-hpa
More information about the Syslinux
mailing list