[U-Boot] [U-Boot, v6, 2/6] test/py: return a RAM address different from 0 as it can be interpreted as NULL
Tom Rini
trini at konsulko.com
Fri Jul 20 22:35:38 UTC 2018
On Mon, Jul 09, 2018 at 07:16:26PM +0200, Quentin Schulz wrote:
> Some functions test that the given address is not NULL (0) and fail or
> have a different behaviour if that's the case (e.g. hexport_r).
>
> Let's make the RAM base address to be not zero by setting it to 2MiB if
> that's the case.
>
> 2MiB is chosen because it represents the size of an ARM LPAE/v8 section.
>
> Suggested-by: Stephen Warren <swarren at wwwdotorg.org>
> Signed-off-by: Quentin Schulz <quentin.schulz at bootlin.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Stephen Warren <swarren at nvidia.com>
> Tested-by: Stephen Warren <swarren at nvidia.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180720/5b432a85/attachment.sig>
More information about the U-Boot
mailing list