[U-Boot] [PATCH v5 2/5] test/py: return a RAM address different from 0 as it can be interpreted as NULL

Simon Glass sjg at chromium.org
Sat Jun 30 04:19:57 UTC 2018


On 29 June 2018 at 00:41, Quentin Schulz <quentin.schulz at bootlin.com> 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>
> ---
>
> added in v5
>
>  test/py/u_boot_utils.py | 6 ++++++
>  1 file changed, 6 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list