From 5df1df2e7ae3c8a9e57f4cd29c07ffcda78c58d0 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 17 May 2024 12:53:01 +0000 Subject: [PATCH] Revert "drivers/console/xtensa_sim_console: force `\r\n` byte sequence" This reverts commit 99aa65c72532315a614871648034af83cd29e442. With this change, various simulators fail with no output with this change. Signed-off-by: Anas Nashif --- drivers/console/xtensa_sim_console.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/console/xtensa_sim_console.c b/drivers/console/xtensa_sim_console.c index 1d52f93af73..316162ddc0c 100644 --- a/drivers/console/xtensa_sim_console.c +++ b/drivers/console/xtensa_sim_console.c @@ -25,14 +25,6 @@ int arch_printk_char_out(int c) register int ret_err __asm__ ("a3"); buf[0] = (char)c; - - if (buf[0] == '\n') { - buf[1] = buf[0]; - buf[0] = '\r'; - a3++; - a5++; - } - __asm__ volatile ("simcall" : "=a" (ret_val), "=a" (ret_err) : "a" (a2), "a" (a3), "a" (a4), "a" (a5)