From: Tom Rini Date: Fri, 20 Jul 2018 18:35:38 -0400 Subject: [U-Boot] [U-Boot, v6, 2/6] test/py: return a RAM address different from 0 as it can be interpreted as NULL In-Reply-To: <08e80ee07ed90d2c695ac820e1f4f4904cf8d0f4.1531156332.git-series.quentin.schulz@bootlin.com> References: <08e80ee07ed90d2c695ac820e1f4f4904cf8d0f4.1531156332.git-series.quentin.schulz@bootlin.com> Message-ID: <20180720223538.GL11755@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Quentin Schulz > Reviewed-by: Simon Glass > Reviewed-by: Stephen Warren > Tested-by: Stephen Warren 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: