mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
make pagealloc zero memory
This commit is contained in:
Binary file not shown.
@@ -43,6 +43,8 @@ void* pageallocator_alloc(size_t size){
|
|||||||
|
|
||||||
spinlock_release(&lock);
|
spinlock_release(&lock);
|
||||||
|
|
||||||
|
memset(alloc->start, 0, pagec*PAGE_SIZE);
|
||||||
|
|
||||||
return alloc->start;
|
return alloc->start;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user