mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
修复显示刷新线程的空指针问题 (#228)
This commit is contained in:
parent
083e89172f
commit
5d00b18528
@ -65,10 +65,12 @@ int video_refresh_daemon(void *unused)
|
||||
if (likely(video_refresh_target != NULL))
|
||||
{
|
||||
spin_lock(&daemon_refresh_lock);
|
||||
memcpy((void *)video_frame_buffer_info.vaddr, (void *)video_refresh_target->vaddr,
|
||||
video_refresh_target->size);
|
||||
if (video_frame_buffer_info.vaddr != NULL)
|
||||
memcpy((void *)video_frame_buffer_info.vaddr, (void *)video_refresh_target->vaddr,
|
||||
video_refresh_target->size);
|
||||
spin_unlock(&daemon_refresh_lock);
|
||||
video_daemon_pcb->virtual_runtime = 0xfffff0000000; // 临时解决由于显示刷新进程的虚拟运行时间过大/过小,导致其不运行,或者一直运行的问题。将来应使用实时调度解决它
|
||||
video_daemon_pcb->virtual_runtime =
|
||||
0xfffff0000000; // 临时解决由于显示刷新进程的虚拟运行时间过大/过小,导致其不运行,或者一直运行的问题。将来应使用实时调度解决它
|
||||
}
|
||||
video_refresh_expire_jiffies = rs_timer_next_n_ms_jiffies(REFRESH_INTERVAL << 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user