From 4584e8c2dfa51b8f28b747dec58b272a8161c44e Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 3 Nov 2006 16:26:10 +0000 Subject: [PATCH] fixed: reserved bit field in page directory entries (map_LFB) git-svn-id: svn://kolibrios.org@207 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/memory.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/core/memory.inc b/kernel/trunk/core/memory.inc index d5720f0343..4ada923b89 100644 --- a/kernel/trunk/core/memory.inc +++ b/kernel/trunk/core/memory.inc @@ -40,7 +40,6 @@ proc init_memEx jnc @F or eax, PG_GLOBAL or ebx, CR4_PGE - @@: mov cr4, ebx @@ -324,7 +323,10 @@ proc map_LFB dec edi jnz @B + bt [cpu_caps], CAPS_PGE + jnc @F or dword [sys_pgdir+ecx], PG_GLOBAL +@@: mov eax, cr3 ;flush TLB mov cr3, eax ret