fix: scheduler L0 table confusion, PMM bitmap rounding, dead task handling

This commit is contained in:
karina
2026-05-02 23:01:40 +04:00
parent 272b9c8998
commit 5673c44a99
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ static inline void BitmapUnset(MemoryPointer bitmap, Address address) {
void PMMInitialize(VMBootMemoryMap* bootMap) {
sPMMRamBase = bootMap->totalRAM.base;
sPMMTotalPages = bootMap->totalRAM.size / kVMPageSize;
sPMMBitmapSize = sPMMTotalPages / kVMBlocksPerByte;
sPMMBitmapSize = (sPMMTotalPages + kVMBlocksPerByte - 1) / kVMBlocksPerByte;
sPMMBitmap = (MemoryPointer)_kernelEnd;
MemorySet(sPMMBitmap, 0, sPMMBitmapSize);