1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-27 11:24:34 -05:00

Fix error

This commit is contained in:
Braiden Vasco 2017-11-05 07:12:04 +00:00
parent 070c386c7d
commit cf1a4931d3

View file

@ -45,8 +45,7 @@ unsigned long memory_alloc_page()
void mark_used(const unsigned long base, const unsigned long limit)
{
const unsigned int start = base / PAGE_SIZE;
const unsigned int end = limit % PAGE_SIZE ? limit / PAGE_SIZE : limit / PAGE_SIZE + 1;
const unsigned int end = limit / PAGE_SIZE;
for (unsigned int i = start; i <= end; ++i) {
frames[i] = 1;