From 6134ec21326f8312d09b69c6cfee749f85846e53 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Fri, 15 Nov 2019 19:17:54 +0100 Subject: Disable caching for first mem page --- kernel/src/asm/boot.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/src/asm/boot.asm b/kernel/src/asm/boot.asm index 9964636..6449d66 100644 --- a/kernel/src/asm/boot.asm +++ b/kernel/src/asm/boot.asm @@ -91,10 +91,13 @@ setup_page_tables: mov eax, p2_table or eax, 0b11 ; present + writable mov [p3_table], eax + + mov eax, 0b10000111 ; huge + no caching + writable + present + mov [p2_table], eax ; map each P2 entry to a huge 2MiB page - mov ecx, 0 ; counter variable - mov eax, 0b10000011 ; huge + writable + present + mov ecx, 8 ; counter variable + mov eax, 0x200000 + 0b10000011 ; huge + writable + present .map_p2_table: cmp eax, 0b10000011 + stack_bottom -- cgit v1.2.3-70-g09d2