aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-09-05 11:31:16 +0200
committerTom Rini <trini@konsulko.com>2022-09-24 10:47:01 -0400
commit7df5b353347621cca0eef7420ba045bf852e778a (patch)
tree02fcb4b3c033578376cbbca8335df2f34d455034 /include
parentca0f827dc78aa23d3b898856cbe2727bdec108e2 (diff)
downloadu-boot-7df5b353347621cca0eef7420ba045bf852e778a.zip
u-boot-7df5b353347621cca0eef7420ba045bf852e778a.tar.gz
u-boot-7df5b353347621cca0eef7420ba045bf852e778a.tar.bz2
sandbox: Add function os_flush()
It flushes stdout. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/os.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h
index 1481787..5b353ae 100644
--- a/include/os.h
+++ b/include/os.h
@@ -296,6 +296,14 @@ void os_putc(int ch);
void os_puts(const char *str);
/**
+ * os_flush() - flush controlling OS terminal
+ *
+ * This bypasses the U-Boot console support and flushes directly the OS
+ * stdout file descriptor.
+ */
+void os_flush(void);
+
+/**
* os_write_ram_buf() - write the sandbox RAM buffer to a existing file
*
* @fname: filename to write memory to (simple binary format)