Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/vt_cpulogos.c
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | for (i = 0; i < VT_MAXWINDOWS; i++) { | ||||
terminal_set_cursor(tm, &vw->vw_buf.vb_cursor); | terminal_set_cursor(tm, &vw->vw_buf.vb_cursor); | ||||
terminal_mute(tm, 0); | terminal_mute(tm, 0); | ||||
VT_LOCK(vd); | VT_LOCK(vd); | ||||
vt_compute_drawable_area(vw); | vt_compute_drawable_area(vw); | ||||
if (vd->vd_curwindow == vw) { | if (vd->vd_curwindow == vw) { | ||||
vd->vd_flags |= VDF_INVALID; | vd->vd_flags |= VDF_INVALID; | ||||
vt_resume_flush_timer(vd, 0); | vt_resume_flush_timer(vw, 0); | ||||
} | } | ||||
VT_UNLOCK(vd); | VT_UNLOCK(vd); | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
vt_init_logos(void *dummy) | vt_init_logos(void *dummy) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | vt_init_logos(void *dummy) | ||||
terminal_set_cursor(tm, &vw->vw_buf.vb_cursor); | terminal_set_cursor(tm, &vw->vw_buf.vb_cursor); | ||||
terminal_mute(tm, 0); | terminal_mute(tm, 0); | ||||
VT_LOCK(vd); | VT_LOCK(vd); | ||||
vt_compute_drawable_area(vw); | vt_compute_drawable_area(vw); | ||||
if (vd->vd_curwindow == vw) { | if (vd->vd_curwindow == vw) { | ||||
vd->vd_flags |= VDF_INVALID; | vd->vd_flags |= VDF_INVALID; | ||||
vt_resume_flush_timer(vd, 0); | vt_resume_flush_timer(vw, 0); | ||||
} | } | ||||
callout_init(&vt_splash_cpu_callout, 1); | callout_init(&vt_splash_cpu_callout, 1); | ||||
callout_reset(&vt_splash_cpu_callout, vt_splash_cpu_duration * hz, | callout_reset(&vt_splash_cpu_callout, vt_splash_cpu_duration * hz, | ||||
vt_fini_logos, NULL); | vt_fini_logos, NULL); | ||||
out: | out: | ||||
VT_UNLOCK(vd); | VT_UNLOCK(vd); | ||||
} | } | ||||
SYSINIT(vt_logos, SI_SUB_CPU + 1, SI_ORDER_ANY, vt_init_logos, NULL); | SYSINIT(vt_logos, SI_SUB_CPU + 1, SI_ORDER_ANY, vt_init_logos, NULL); |