u-boot-brain/arch/sandbox/cpu
Simon Glass 4a6409b74c sandbox: Correct maths in allocation routines
Allocation routines were adjusted to ensure that the returned addresses
are a multiple of the page size, but the header code was not updated to
take account of this. These routines assume that the header size is the
same as the page size which is unlikely.

At present os_realloc() does not work correctly due to this bug. The only
user is the hostfs 'ls' command, and only if the directory contains a
unusually long filename, which likely explains why this bug was not
caught earlier.

Fix this by doing the calculations using the obtained page size.

Signed-off-by: Simon Glass <sjg@chromium.org>
2019-04-23 20:26:43 -06:00
..
cpu.c sandbox: remove stray DEBUG 2018-11-20 19:14:22 -07:00
eth-raw-os.c sandbox: Use malloc() and free() from os layer 2018-11-26 08:25:37 -05:00
Makefile sandbox: Use 'extras' to specify 'head' files 2018-12-05 06:01:34 -07:00
os.c sandbox: Correct maths in allocation routines 2019-04-23 20:26:43 -06:00
sdl.c sandbox: Correct SDL build flags 2019-01-14 17:47:13 -07:00
spl.c sandbox: Check the filename in jump_to_image_no_args() 2018-12-05 06:01:34 -07:00
start.c sandbox: Improve debugging in initcall_run_list() 2019-04-23 20:26:43 -06:00
state.c sandbox: Remove the old memory file later 2018-10-09 04:40:26 -06:00
u-boot-spl.lds sandbox: Add an option to display of-platdata in SPL 2018-11-26 08:25:35 -05:00
u-boot.lds Partially revert "efi_loader: Rename sections to allow for implicit data" 2018-08-23 16:17:41 -04:00