aboutsummaryrefslogtreecommitdiff
path: root/kernel/mm/virtual_mm/page_table_allocator.cc
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-02-04 19:34:26 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-02-04 19:36:47 +0530
commitcb90318893b2bbbfa22c1d656b3fb74765c62615 (patch)
tree59b554917480864f58464625b541e7ab4e31c2a5 /kernel/mm/virtual_mm/page_table_allocator.cc
parent1c84c1e838bddb1a85d1a708b22e9d488831f5b2 (diff)
mm: virtual_mm: No need to check l_table_index
Since each directory can have only 1024 entries, we don't need to check l_table_index or create any new tables.
Diffstat (limited to 'kernel/mm/virtual_mm/page_table_allocator.cc')
-rw-r--r--kernel/mm/virtual_mm/page_table_allocator.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/mm/virtual_mm/page_table_allocator.cc b/kernel/mm/virtual_mm/page_table_allocator.cc
index 3ec4896..6a2a07e 100644
--- a/kernel/mm/virtual_mm/page_table_allocator.cc
+++ b/kernel/mm/virtual_mm/page_table_allocator.cc
@@ -56,11 +56,6 @@ prepare(void)
/* Initial table */
if (l_heap == NULL)
make_table((uint32_t *) (7 * MiB));
-
- /* If we're gonna run out of space, allocate a new table with the remaining
- * page */
- if (l_table_index == 1023)
- make_table(allocate());
}
uint32_t *