aboutsummaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/setup.c b/setup.c
index 48df825..3542043 100644
--- a/setup.c
+++ b/setup.c
@@ -1,4 +1,5 @@
#include "uart.h"
+#include "io.h"
#include "demo_functionality.h"
#include "paging.h"
@@ -9,9 +10,9 @@ void setup(void)
// When we attach screen session after loading kernel with socat
// we miss kernel's greeting... So we'll make the kernel wait for
// one char we're going to send from within screen
- uart_getc();
+ getchar();
- uart_puts("Hello, kernel World!\r\n");
+ puts("Hello, kernel World!");
// prints some info
demo_paging_support();
@@ -31,11 +32,11 @@ void setup(void)
while (1)
{
- char c = uart_getc();
+ char c = getchar();
- uart_putc(c);
-
if (c == '\r')
- uart_putc('\n');
+ putchar('\n');
+
+ putchar(c);
}
}