[Simh] porting simh to plan9

Holger Veit holger.veit at iais.fraunhofer.de
Sun Dec 19 11:46:49 EST 2010


Am 19.12.2010 15:10, schrieb Fernan Bolando:
> after some debugging, I finally know what is causing simh to become
> non responsive.
> the good news is simh25 can easily be compiled through plan9 ape
> compatibility. The bad news is poll_kbd is blocking in plan9 so it
> does not return untill you press crriage return. commenting out
> poll_kbd allows the pdp11 to boot and show it's prompt but you will
> not be able to send keyboard command. it also crashes a few seconds
> after that so after fixing the nonblocking problem something might be
> broken
>
> so i need a plan9 version of poll_keyoard or get telnet approach working.
>
Plan 9 might use the common Unix method of non-blocking I/O, namely, 
open /dev/tty (which is
usually connected to the keyboard) and use an ioctl to switch it to 
nonblocking. Under Unix, this
is FIONBIO.

Holger



More information about the Simh mailing list