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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user