commit 828db5ead2bca36368d874d9ec55b6c23f2f292e
parent a6f9da76612823c4485096afb15c319845fd5740
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 18 Sep 2020 15:56:08 +0200
aarch64: Enable echo and cooked mode
Change-Id: Ic35fc7f5d9070a1bac4b49daf3b35135e9d4dccf
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/os9/arch/arm64/main.c b/src/os9/arch/arm64/main.c
@@ -86,6 +86,8 @@ namespace(void)
int fd;
static char setin[] = "addin /dev/uart0/raw\n";
static char setout[] = "addout /dev/uart0/raw\n";
+ static char echo[] = "echo on\n";
+ static char cooked[] = "cooked on\n";
/* Standard input set to 0 */
if ((kin = open("#c/raw", O_READ)) < 0)
@@ -112,6 +114,10 @@ namespace(void)
panic("write:setin");
if (write(fd, setout, sizeof(setout)) < 0)
panic("write:setout");
+ if (write(fd, echo, sizeof(echo)) < 0)
+ panic("write:echo");
+ if (write(fd, cooked, sizeof(cooked)) < 0)
+ panic("write:cooked");
if (close(fd) < 0)
panic("close:/dev/cons/ctl");