]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Zero the ram buffer on startup
authorSimon Glass <sjg@chromium.org>
Sat, 24 Nov 2018 04:29:29 +0000 (21:29 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2018 13:01:34 +0000 (06:01 -0700)
commit25af7db91da203e7d385d61aed5b39d25bedbe8e
treeea14f430006a34818ec82fe630f84dcafa5bb0a2
parent736aa24b07c571718f27a49c96c8c29873bbd1c8
sandbox: Zero the ram buffer on startup

At present the RAM buffer is not inited unless it is read from a file,
likely produced by an earlier phase of U-Boot. This causes valgrind
warnings whenever the RAM buffer is used. Correct this by initing it if
needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c
arch/sandbox/include/asm/state.h