1
0
mirror of https://github.com/simh/simh.git synced 2026-01-29 13:11:26 +00:00

Finish migration for simulators to use generic clock co-scheduling and sim_activate_after for scheduled delays

This commit is contained in:
Mark Pizzolato
2013-01-22 05:41:27 -08:00
parent 83c1d80194
commit 9fc6aa73d6
21 changed files with 35 additions and 46 deletions

View File

@@ -101,7 +101,7 @@ t_stat clk_svc (UNIT *uptr)
if (clk_dev.flags & DEV_DIS) /* disabled? */
return SCPE_OK;
tmxr_poll = sim_rtcn_calb (CLK_TPS, TMR_CLK); /* calibrate clock */
sim_activate (&clk_unit, tmxr_poll); /* reactivate unit */
sim_activate_after (uptr, 1000000/CLK_TPS); /* reactivate unit */
clk_cntr = clk_cntr + CLK_CNTS; /* incr counter */
if ((clk_cntr % CLK_C32MS) == 0) /* 32ms interval? */
dev_req_int (clk32ms_sbs); /* req intr */