* controller was not able to execute the command. Leftover timeouts are
* simply ignored by the main loop.
*/
- sys_syncalrm(SELF, wakeup_ticks, 0);
+ sys_setalarm(wakeup_ticks, 0);
w_status = STATUS_ADMBSY;
w_command = cmd->command;
* controller was not able to execute the command. Leftover timeouts are
* simply ignored by the main loop.
*/
- sys_syncalrm(SELF, wakeup_ticks, 0);
+ sys_setalarm(wakeup_ticks, 0);
#if _WORD_SIZE > 2
if (cnt > 0xFFFE) cnt = 0xFFFE; /* Max data per interrupt. */
f_next_timeout = TMR_NEVER;
} else { /* set new sync alarm */
f_next_timeout = f_timers->tmr_exp_time;
- if ((s=sys_syncalrm(SELF, f_next_timeout, 1)) != OK)
+ if ((s=sys_setalarm(f_next_timeout, 1)) != OK)
panic("FLOPPY","Couldn't set synchronous alarm.", s);
}
}
*/
if (f_timers->tmr_exp_time != f_next_timeout) {
f_next_timeout = f_timers->tmr_exp_time;
- if ((s=sys_syncalrm(SELF, f_next_timeout, 1)) != OK)
+ if ((s=sys_setalarm(f_next_timeout, 1)) != OK)
panic("FLOPPY","Couldn't set synchronous alarm.", s);
}
}
fxp_timers->tmr_exp_time < fxp_next_timeout)
{
fxp_next_timeout= fxp_timers->tmr_exp_time;
- printf("fxp_set_timer: calling sys_syncalrm for %d (now+%d)\n",
+ printf("fxp_set_timer: calling sys_setalarm for %d (now+%d)\n",
fxp_next_timeout, fxp_next_timeout-now);
- r= sys_syncalrm(SELF, fxp_next_timeout, 1);
+ r= sys_setalarm(fxp_next_timeout, 1);
if (r != OK)
panic("FXP","unable to set synchronous alarm", r);
}
else
{ /* set new alarm */
fxp_next_timeout = fxp_timers->tmr_exp_time;
- r= sys_syncalrm(SELF, fxp_next_timeout, 1);
+ r= sys_setalarm(fxp_next_timeout, 1);
if (r != OK)
panic("FXP","Unable to set synchronous alarm.", r);
}
log->log_status = subread(log, log->log_iosize,
log->log_proc_nr, log->log_user_vir);
printf("alert for revive %d..\n", log->log_source);
- alert(log->log_source);
+ notify(log->log_source);
printf("alert for revive done..\n");
log->log_revive_alerted = 1;
}
* swallow all the data (log_size > 0).
*/
if(log->log_selected & SEL_RD) {
- alert(log->log_select_proc);
+ notify(log->log_select_proc);
log->log_select_alerted = 1;
#if LOG_DEBUG
printf("log notified %d\n", log->log_select_proc);
}
/* Schedule new alarm for next m_random call. */
- if (OK != (s=sys_syncalrm(SELF, KRANDOM_PERIOD, 0)))
- report("MEM", "sys_syncalarm failed", s);
+ if (OK != (s=sys_setalarm(KRANDOM_PERIOD, 0)))
+ report("MEM", "sys_setalarm failed", s);
}
/*============================================================================*
#else
revive_pending = TRUE;
revive_status = status;
- alert(caller);
+ notify(caller);
#endif
}
tmra_inittimer(&rl_watchdog);
/* Use a synchronous alarm instead of a watchdog timer. */
- sys_syncalrm(SELF, HZ, 0);
+ sys_setalarm(HZ, 0);
}
port = mp->DL_PORT;
int i;
re_t *rep;
/* Use a synchronous alarm instead of a watchdog timer. */
- sys_setalarm(SELF, HZ, 0);
+ sys_setalarm(HZ, 0);
for (i= 0, rep = &re_table[0]; i<RE_PORT_NR; i++, rep++)
{
tmrs_settimer(&tty_timers, &tmr_stop_beep, now+B_TIME, stop_beep, NULL);
if (tty_timers->tmr_exp_time != tty_next_timeout) {
tty_next_timeout = tty_timers->tmr_exp_time;
- if ((s=sys_syncalrm(SELF, tty_next_timeout, 1)) != OK)
- panic("TTY","Console couldn't set syn alarm.", s);
+ if ((s=sys_setalarm(tty_next_timeout, 1)) != OK)
+ panic("TTY","Console couldn't set alarm.", s);
}
}
/* See if an observer is registered and send it a message. */
if (proc_nr != NONE) {
m.NOTIFY_TYPE = FKEY_PRESSED;
- alert(proc_nr);
+ notify(proc_nr);
}
return(TRUE);
}
if (sigismember(&sigset, SIGKSTOP)) {
cons_stop(); /* switch to primary console */
-#if DEAD_CODE
if (irq_hook_id != -1) {
sys_irqdisable(&irq_hook_id);
sys_irqrmpolicy(KEYBOARD_IRQ, &irq_hook_id);
}
-#endif
}
if (sigismember(&sigset, SIGTERM)) cons_stop();
if (sigismember(&sigset, SIGKMESS)) do_new_kmess(&tty_mess);
}
#else
if (select_try(tp, tp->tty_select_ops))
- alert(tp->tty_select_proc);
+ notify(tp->tty_select_proc);
#endif
return OK;
if (tp->tty_incum >= tp->tty_min && tp->tty_inleft > 0) {
#if NEW_REVIVE
if (tp->tty_inrepcode == REVIVE) {
- alert(tp->tty_incaller);
+ notify(tp->tty_incaller);
tp->tty_inrevived = 1;
} else {
tty_reply(tp->tty_inrepcode, tp->tty_incaller,
if (tp->tty_inleft == 0) {
#if NEW_REVIVE
if (tp->tty_inrepcode == REVIVE) {
- alert(tp->tty_incaller);
+ notify(tp->tty_incaller);
tp->tty_inrevived = 1;
} else {
tty_reply(tp->tty_inrepcode, tp->tty_incaller,
if (tty_timers == NULL) tty_next_timeout = TMR_NEVER;
else { /* set new sync alarm */
tty_next_timeout = tty_timers->tmr_exp_time;
- if ((s=sys_syncalrm(SELF, tty_next_timeout, 1)) != OK)
+ if ((s=sys_setalarm(tty_next_timeout, 1)) != OK)
panic("TTY","Couldn't set synchronous alarm.", s);
}
}
if (tty_timers == NULL) tty_next_timeout = TMR_NEVER;
else if (tty_timers->tmr_exp_time != tty_next_timeout) {
tty_next_timeout = tty_timers->tmr_exp_time;
- if ((s=sys_syncalrm(SELF, tty_next_timeout, 1)) != OK)
+ if ((s=sys_setalarm(tty_next_timeout, 1)) != OK)
panic("TTY","Couldn't set synchronous alarm.", s);
}
}