mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
Fix error
This commit is contained in:
parent
070c386c7d
commit
cf1a4931d3
1 changed files with 2 additions and 3 deletions
|
@ -44,9 +44,8 @@ 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 start = base / PAGE_SIZE;
|
||||
const unsigned int end = limit / PAGE_SIZE;
|
||||
|
||||
for (unsigned int i = start; i <= end; ++i) {
|
||||
frames[i] = 1;
|
||||
|
|
Loading…
Reference in a new issue