trs80: work around a bug in xtrs
authorAlan Cox <alan@linux.intel.com>
Wed, 16 May 2018 21:20:33 +0000 (22:20 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 16 May 2018 21:20:33 +0000 (22:20 +0100)
The emulator delays intializing the port until the code touches it. We however
don't necessarily touch it until someone types something and rely on the IRQ.

Kernel/platform-trs80/discard.c

index 5da36f5..3c7d5ab 100644 (file)
@@ -1,6 +1,7 @@
 #include <kernel.h>
 #include <devhd.h>
 #include <devtty.h>
+#include <tty.h>
 
 void device_init(void)
 {
@@ -10,6 +11,7 @@ void device_init(void)
   inittod();
 #endif
   hd_probe();
+  tty_setup(3);
 }
 
 void map_init(void)