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)
commita65d1a06c9f76d3285948a059b861d7534589cfc
treeea14f430006a34818ec82fe630f84dcafa5bb0a2
parent2a07269062a8e63dadc23be0f8b0d4638da7d2d2
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