Skip to content
Commit b363da1c authored by Marek Vasut's avatar Marek Vasut Committed by Simon Glass
Browse files

cmd: fdt: Map address returned from fdt get addr to sysmem



The address returned from 'fdt get addr' command must be mapped
into sysmem, as this is a working FDT. Access to this address
without mapping it would lead to crash e.g. in sandbox.

The following command triggers the crash:
"
./u-boot -Dc 'fdt addr $fdtcontroladdr ; fdt get addr var / compatible ; md $var'
"

Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 98d114e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment