Home
last modified time | relevance | path

Searched hist:"7 dbcb76e77361970f7223c1bca4fdc9bb0436a08" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/arch/sandbox/cpu/
H A Dstart.c7dbcb76e77361970f7223c1bca4fdc9bb0436a08 Wed Oct 29 22:21:38 UTC 2014 Rabin Vincent <rabin@rab.in> sandbox: init cli for -c

sandbox crashes if a variable is set in the -c command, because
hush's top_vars is not allocated. Call cli_init() from sandbox
to ensure this is done before we execute the -c command.

$ ./u-boot -c 'a=1'
...
Segmentation fault (core dumped)

Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Simon Glass <sjg@chromium.org)
Tested-by: Simon Glass <sjg@chromium.org)