sandbox: Tidy up terminal restore
authorSimon Glass <sjg@chromium.org>
Mon, 11 May 2015 03:07:27 +0000 (21:07 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Jun 2015 09:34:47 +0000 (03:34 -0600)
commit8939df092e24abdf39edb6fbca90fe9c2b44c3b1
treedc10fddd793983f313578d05fae3c6064c00319f
parentd8abb46b37fadff0349adb376df6d3ecd09ee7d1
sandbox: Tidy up terminal restore

For some reason 'u-boot -D' does not restore the terminal correctly when
the 'reset' command is used. Call the terminal restore function explicitly
in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
arch/sandbox/cpu/cpu.c
arch/sandbox/cpu/os.c
include/os.h