mirror of
https://github.com/simh/simh.git
synced 2026-04-28 20:57:26 +00:00
VAX: Set reasonable clock co-scheduled polling for console input
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user