aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel.c b/kernel.c
index 5960b15..555aa47 100644
--- a/kernel.c
+++ b/kernel.c
@@ -11,6 +11,12 @@ void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
(void) atags;
uart_init();
+
+ // 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();
+
uart_puts("Hello, kernel World!\r\n");
uint32_t ID_MMFR0;