diff options
author | Simon Glass <sjg@chromium.org> | 2015-05-10 21:07:27 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-06-04 03:34:47 -0600 |
commit | 8939df092e24abdf39edb6fbca90fe9c2b44c3b1 (patch) | |
tree | dc10fddd793983f313578d05fae3c6064c00319f /arch/sandbox/cpu/cpu.c | |
parent | d8abb46b37fadff0349adb376df6d3ecd09ee7d1 (diff) | |
download | u-boot-imx-8939df092e24abdf39edb6fbca90fe9c2b44c3b1.zip u-boot-imx-8939df092e24abdf39edb6fbca90fe9c2b44c3b1.tar.gz u-boot-imx-8939df092e24abdf39edb6fbca90fe9c2b44c3b1.tar.bz2 |
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>
Diffstat (limited to 'arch/sandbox/cpu/cpu.c')
-rw-r--r-- | arch/sandbox/cpu/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index b6aae37..02c4cd3 100644 --- a/arch/sandbox/cpu/cpu.c +++ b/arch/sandbox/cpu/cpu.c @@ -22,6 +22,8 @@ unsigned long map_len; void reset_cpu(ulong ignored) { + /* Do this here while it still has an effect */ + os_fd_restore(); if (state_uninit()) os_exit(2); |