opengnsys_ipxe/src
Michael Brown 7ecfe7159f [prefix] Pad .text16 and .data16 segment sizes at build time
Commit c64747d ("[librm] Speed up real-to-protected mode transition
under KVM") rounded down the .text16 segment address calculated in
alloc_basemem() to a multiple of 64 bytes in order to speed up mode
transitions under KVM.

This creates a potential discrepancy between alloc_basemem() and
free_basemem(), meaning that free_basemem() may free less memory than
was allocated by alloc_basemem().

Fix by padding the calculated sizes of both .text16 and .data16 to a
multiple of 64 bytes at build time.

Debugged-by: Yossef Efraim <yossefe@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2016-02-12 14:04:51 +00:00
..
arch [prefix] Pad .text16 and .data16 segment sizes at build time 2016-02-12 14:04:51 +00:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [build] Add named configuration for public cloud environments 2016-01-18 08:37:27 +00:00
core [iobuf] Improve robustness of I/O buffer allocation 2016-02-11 19:04:23 +00:00
crypto [ocsp] Avoid including a double path separator in request URI 2016-01-21 17:50:34 +00:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [intel] Add INTEL_NO_PHY_RST for another I218-LM variant 2016-02-12 13:23:44 +00:00
hci [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-05 11:40:13 +00:00
image [efi] Add support for EFI_GRAPHICS_OUTPUT_PROTOCOL frame buffer consoles 2015-10-16 16:38:41 +01:00
include [tcp] Guard against malformed TCP options 2016-01-27 23:06:50 +00:00
interface [efi] Add missing definitions for function key scancodes 2016-02-12 13:08:52 +00:00
libgcc [build] Mark __intel_new_proc_init with __libgcc rather than cdecl 2009-08-03 15:56:10 +01:00
net [slam] Avoid potential division by zero 2016-01-27 23:27:47 +00:00
tests [iobuf] Improve robustness of I/O buffer allocation 2016-02-11 19:04:23 +00:00
usr [autoboot] Fix incorrect boolean logic 2016-01-19 08:16:17 +00:00
util [efi] Add %.usb target for building EFI-bootable USB (or other) disk images 2015-12-07 13:08:22 +00:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [crypto] Support SHA-{224,384,512} in X.509 certificates 2015-08-02 16:54:24 +01:00
Makefile.housekeeping [debug] Allow debug colourisation to be disabled 2016-01-12 15:39:14 +00:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00