mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
Add slightly better kmalloc_aligned() and kfree_aligned().
Process page directories can now actually be freed. This could definitely be implemented in a nicer, less wasteful way, but this works for now. The spawn stress test can now run for a lot longer but eventually dies due to kmalloc running out of memory.
This commit is contained in:
parent
55c722096d
commit
f6179ad9f9
5 changed files with 26 additions and 20 deletions
|
@ -4,7 +4,9 @@ void kmalloc_init();
|
|||
void *kmalloc(dword size) __attribute__ ((malloc));
|
||||
void* kmalloc_eternal(size_t) __attribute__ ((malloc));
|
||||
void* kmalloc_page_aligned(size_t) __attribute__ ((malloc));
|
||||
void* kmalloc_aligned(size_t, size_t alignment) __attribute__ ((malloc));
|
||||
void kfree(void*);
|
||||
void kfree_aligned(void*);
|
||||
|
||||
bool is_kmalloc_address(void*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue