mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +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:
parent
11b73c38d8
commit
267a903dd0
9 changed files with 108 additions and 35 deletions
|
@ -306,4 +306,10 @@ void sync()
|
|||
syscall(SC_sync);
|
||||
}
|
||||
|
||||
int read_tsc(unsigned* lsw, unsigned* msw)
|
||||
{
|
||||
int rc = syscall(SC_read_tsc, lsw, msw);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue