Skip to content

Commit

Permalink
vm: Increase vm_map pool size
Browse files Browse the repository at this point in the history
DONE: RTOS-928
  • Loading branch information
agkaminski committed Sep 27, 2024
1 parent 52e5cf1 commit 74b869b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vm/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,8 @@ int _map_init(vm_map_t *kmap, vm_object_t *kernel, void **bss, void **top)
vm_pageGetStats(&freesz);

/* Init map entry pool */
map_common.nfree = map_common.ntotal = freesz / (4 * SIZE_PAGE + sizeof(map_entry_t));
map_common.ntotal = freesz / (3 * SIZE_PAGE + sizeof(map_entry_t));
map_common.nfree = map_common.ntotal;

while ((*top) - (*bss) < sizeof(map_entry_t) * map_common.ntotal) {
result = _page_sbrk(&map_common.kmap->pmap, bss, top);
Expand Down

0 comments on commit 74b869b

Please sign in to comment.