vm_page_allocate_page_run: fix previous commit
* remove superfluous codes * when aligning, sPhysicalPageOffset would be substracted twice +alpha4 Signed-off-by: Ingo Weinhold <ingo_weinhold at gmx dot de>
This commit is contained in:
parent
7bcbf187d0
commit
8ddec5b565
@ -3862,9 +3862,8 @@ vm_page_allocate_page_run(uint32 flags, page_num_t length,
|
|||||||
page_num_t offsetStart = start + sPhysicalPageOffset;
|
page_num_t offsetStart = start + sPhysicalPageOffset;
|
||||||
|
|
||||||
// enforce alignment
|
// enforce alignment
|
||||||
if (alignmentMask != 0 && (offsetStart & alignmentMask) != 0) {
|
if ((offsetStart & alignmentMask) != 0) {
|
||||||
offsetStart = ((offsetStart + alignmentMask) & ~alignmentMask)
|
offsetStart = (offsetStart + alignmentMask) & ~alignmentMask;
|
||||||
- sPhysicalPageOffset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// enforce boundary
|
// enforce boundary
|
||||||
@ -3919,7 +3918,7 @@ vm_page_allocate_page_run(uint32 flags, page_num_t length,
|
|||||||
freeClearQueueLocker.Lock();
|
freeClearQueueLocker.Lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
start += max_c(i, alignmentMask) + 1;
|
start += i + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user