u-boot-brain/arch
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
..
arc ARC: [plat-axs10x]: migrate to DM_MMC 2019-04-18 09:12:38 +03:00
arm Merge branch 'master' of git://git.denx.de/u-boot-usb 2019-04-21 19:00:04 -04:00
m68k m68k: ColdFire mcf5441x, add eSDHC support 2018-09-16 00:01:13 +02:00
microblaze arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
mips Merge branch 'master' of git://git.denx.de/u-boot-spi 2019-04-14 00:03:06 -04:00
nds32 dts: switch spi-flash to jedec, spi-nor compatible 2019-04-12 10:54:27 +05:30
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc powerpc: fix arch/powerpc/dts/Makefile 2019-03-22 12:15:10 -04:00
riscv dts: switch spi-flash to jedec, spi-nor compatible 2019-04-12 10:54:27 +05:30
sandbox sandbox: Correct maths in allocation routines 2019-04-23 20:26:43 -06:00
sh sh: bitops: add hweight*() macros 2019-02-07 15:33:21 +05:30
x86 x86: dts: switch spi-flash to jedec, spi-nor compatible 2019-04-12 10:54:27 +05:30
xtensa xtensa: use asm-generic/atomic.h 2018-09-25 21:49:18 -04:00
.gitignore
Kconfig riscv: Enable create symlink using kconfig 2019-02-27 09:12:33 +08:00