mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Terminal: Redraw entire line if any of its characters are dirty.
This means we only have to do one fill_rect() per line and the whole process ends up being ~10% faster than before. Also added a read_tsc() syscall to give userspace access to the TSC.
This commit is contained in:
@@ -2081,3 +2081,13 @@ int Process::sys$unlink(const char* pathname)
|
||||
return error;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Process::sys$read_tsc(dword* lsw, dword* msw)
|
||||
{
|
||||
if (!validate_write_typed(lsw))
|
||||
return -EFAULT;
|
||||
if (!validate_write_typed(msw))
|
||||
return -EFAULT;
|
||||
read_tsc(*lsw, *msw);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user