VAX: Set reasonable clock co-scheduled polling for console input

This commit is contained in:
Mark Pizzolato 2015-12-08 16:50:00 -08:00
parent 109c197faa
commit dac6633237
6 changed files with 11 additions and 10 deletions

View file

@ -337,8 +337,8 @@ t_stat tti_svc (UNIT *uptr)
{ {
int32 c; int32 c;
sim_clock_coschedule (uptr, KBD_WAIT (uptr->wait, tmr_poll)); sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
/* continue poll */
if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */ if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */
((sim_os_msec () - tti_buftime) < 500)) ((sim_os_msec () - tti_buftime) < 500))
return SCPE_OK; return SCPE_OK;

View file

@ -272,8 +272,8 @@ t_stat tti_svc (UNIT *uptr)
{ {
int32 c; int32 c;
sim_clock_coschedule (uptr, KBD_WAIT (uptr->wait, tmr_poll)); sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
/* continue poll */
if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */ if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */
((sim_os_msec () - tti_buftime) < 500)) ((sim_os_msec () - tti_buftime) < 500))
return SCPE_OK; return SCPE_OK;

View file

@ -517,8 +517,8 @@ t_stat tti_svc (UNIT *uptr)
{ {
int32 c; int32 c;
sim_clock_coschedule (uptr, KBD_WAIT (uptr->wait, tmr_poll)); sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
/* continue poll */
if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */ if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */
((sim_os_msec () - tti_buftime) < 500)) ((sim_os_msec () - tti_buftime) < 500))
return SCPE_OK; return SCPE_OK;

View file

@ -511,8 +511,8 @@ t_stat tti_svc (UNIT *uptr)
{ {
int32 c; int32 c;
sim_clock_coschedule (uptr, KBD_WAIT (uptr->wait, tmr_poll)); sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
/* continue poll */
if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */ if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */
((sim_os_msec () - tti_buftime) < 500)) ((sim_os_msec () - tti_buftime) < 500))
return SCPE_OK; return SCPE_OK;

View file

@ -482,6 +482,7 @@ t_stat tti_svc (UNIT *uptr)
int32 c; int32 c;
sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */ sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */ if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */
((sim_os_msec () - tti_buftime) < 500)) ((sim_os_msec () - tti_buftime) < 500))
return SCPE_OK; return SCPE_OK;

View file

@ -335,8 +335,8 @@ t_stat tti_svc (UNIT *uptr)
{ {
int32 c; int32 c;
sim_clock_coschedule (uptr, KBD_WAIT (uptr->wait, tmr_poll)); sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
/* continue poll */
if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */ if ((tti_csr & CSR_DONE) && /* input still pending and < 500ms? */
((sim_os_msec () - tti_buftime) < 500)) ((sim_os_msec () - tti_buftime) < 500))
return SCPE_OK; return SCPE_OK;