[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 2/2] kernel2: Prüfung auf Doppelmapping gefixt



! kernel2: Ein Mapping hat sich dann geändert, wenn die Adressen
  ungleich sind, nicht wenn sie gleich sind

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/kernel2/src/arch/i386/mm/mm_context.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/kernel2/src/arch/i386/mm/mm_context.c b/src/kernel2/src/arch/i386/mm/mm_context.c
index b2b3d42..ad91567 100644
--- a/src/kernel2/src/arch/i386/mm/mm_context.c
+++ b/src/kernel2/src/arch/i386/mm/mm_context.c
@@ -337,9 +337,9 @@ static bool map_page
     
     bool page_is_present = (page_table[vpage % PAGE_TABLE_LENGTH] & PTE_P);
     bool unmap_page = ! (flags & PTE_P);
-    bool mapping_changed = 
-        ((page_table[vpage % PAGE_TABLE_LENGTH] & ~(PTE_A | PTE_D)) 
-        == 
+    bool mapping_changed =
+        ((page_table[vpage % PAGE_TABLE_LENGTH] & ~(PTE_A | PTE_D))
+        !=
         ((uint32_t) paddr | flags));
 
     if (page_is_present && !unmap_page && mapping_changed)
-- 
1.6.0.2