From 3b36db19097197bbbefe48339f27dae50e7f9aff Mon Sep 17 00:00:00 2001
From: "Sergey Semyonov (Serge)" <ion2@mail.ru>
Date: Fri, 9 Jan 2015 02:20:21 +0000
Subject: [PATCH] kernel: fix stupid bug in map_page_table()

git-svn-id: svn://kolibrios.org@5365 a494cfbc-eb01-0410-851d-a64ba20cac60
---
 kernel/trunk/core/memory.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trunk/core/memory.inc b/kernel/trunk/core/memory.inc
index 075cf0e2fa..0f65a85cc4 100644
--- a/kernel/trunk/core/memory.inc
+++ b/kernel/trunk/core/memory.inc
@@ -341,7 +341,7 @@ proc map_page_table stdcall, lin_addr:dword, phis_addr:dword
         shr     ebx, 22
         mov     eax, [phis_addr]
         and     eax, not 0xFFF
-        or      eax, PG_READ
+        or      eax, PG_UWR
         mov     dword [master_tab+ebx*4], eax
         mov     eax, [lin_addr]
         shr     eax, 10