[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] Kernel: paging.c: Klammern in if-Bedingung korrigiert
!: paging.c: Ubuntu's gcc 4.4 hat bei der Klammerung gemeckert,
Klammern nun richtig gesetzt
Signed-off-by: Alexander Hartmut Kluth <hartmut@xxxxxxxxxx>
---
src/kernel/src/mm/paging.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/kernel/src/mm/paging.c b/src/kernel/src/mm/paging.c
index 30ba46a..82d34c6 100644
--- a/src/kernel/src/mm/paging.c
+++ b/src/kernel/src/mm/paging.c
@@ -379,7 +379,7 @@ bool is_userspace(vaddr_t start, dword len)
cur += PAGE_SIZE)
{
dword pte = get_pagetable_entry(current_task->cr3, cur);
- if ((pte == 0) || (!pte & PTE_U)) {
+ if ((pte == 0) || ((!pte) & PTE_U)) {
return FALSE;
}
}
--
1.6.3.3