mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
Support /r/n as newline character.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -31,6 +31,8 @@ char sbi_getc(void)
|
|||||||
|
|
||||||
void sbi_putc(char ch)
|
void sbi_putc(char ch)
|
||||||
{
|
{
|
||||||
|
if (ch == '\n')
|
||||||
|
sbi_platform_console_putc(console_plat, '\r');
|
||||||
sbi_platform_console_putc(console_plat, ch);
|
sbi_platform_console_putc(console_plat, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user