From 27aba5ac3eba832ab9f9a30e65256d17b0b03a12 Mon Sep 17 00:00:00 2001 From: Egor Zhovnir <73394910+Km1zZzoU@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:55:15 +0700 Subject: [PATCH] small remark in startup.asm Each table requires 0x400 (1024) pages, not 0x1000 --- os/kernel/src/init/startup.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/kernel/src/init/startup.asm b/os/kernel/src/init/startup.asm index df3c3799..dab29206 100644 --- a/os/kernel/src/init/startup.asm +++ b/os/kernel/src/init/startup.asm @@ -154,7 +154,7 @@ create_identity_page_table: inc eax ; Leave loop if we filled all entries for the first 6 megabytes - cmp eax, PAGES_COUNT * 0x1000 + cmp eax, PAGES_COUNT * 0x400 jl fill_identity_page_table_loop ret @@ -181,7 +181,7 @@ create_kernel_page_table: inc eax ; Leave loop if we filled all entries for the first megabyte - cmp eax, PAGES_COUNT * 0x1000 + cmp eax, PAGES_COUNT * 0x400 jl fill_kernel_page_table_loop ret @@ -216,4 +216,4 @@ protstr: mov ecx, 10 rep stosw - ret \ No newline at end of file + ret