1
Fork 0
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:
Andreas Kling 2019-01-25 02:09:29 +01:00
parent 11b73c38d8
commit 267a903dd0
9 changed files with 108 additions and 35 deletions

View file

@ -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);
}
}