Add a basic scheduler with threads #18

Merged
apio merged 19 commits from threads into restart 2022-12-07 16:11:59 +00:00
Showing only changes of commit 98a55b2c13 - Show all commits

View File

@ -65,10 +65,11 @@ void Bitmap::clear_region(usize start, usize bits, bool value)
if (!bits) return;
// Set individual bits while not on a byte boundary.
while ((start % 8) && bits--)
while ((start % 8) && bits)
{
set(start, value);
start++;
bits--;
}
// Clear out the rest in bytes.