mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
pmm: optimization
This commit is contained in:
@@ -133,6 +133,9 @@ void* pmm_alloc(size_t count){
|
|||||||
|
|
||||||
spinlock_release(&lock);
|
spinlock_release(&lock);
|
||||||
|
|
||||||
|
if(count == 1)
|
||||||
|
lastfree = addr;
|
||||||
|
|
||||||
return addr;
|
return addr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user