git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: nearly complete POSIX.1-2008 compliant terminal interface implementation
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
mm
/
pfault.c
diff --git
a/lunaix-os/arch/i386/mm/pfault.c
b/lunaix-os/arch/i386/mm/pfault.c
index 848f215c359f3c75d851c1ae5a29e092bc707fd6..faf7da066d30a3cba019c1775b9af66c4fca2a86 100644
(file)
--- a/
lunaix-os/arch/i386/mm/pfault.c
+++ b/
lunaix-os/arch/i386/mm/pfault.c
@@
-92,7
+92,7
@@
intr_routine_page_fault(const isr_param* param)
goto oom;
}
goto oom;
}
- *pte =
*pte |
pa | get_ptattr(hit_region);
+ *pte = pa | get_ptattr(hit_region);
memset((void*)PG_ALIGN(ptr), 0, PG_SIZE);
goto resolved;
}
memset((void*)PG_ALIGN(ptr), 0, PG_SIZE);
goto resolved;
}
@@
-115,7
+115,7
@@
intr_routine_page_fault(const isr_param* param)
}
cpu_flush_page((ptr_t)pte);
}
cpu_flush_page((ptr_t)pte);
- *pte =
(*pte & 0xFFF) |
pa | get_ptattr(hit_region);
+ *pte = pa | get_ptattr(hit_region);
memset((void*)ptr, 0, PG_SIZE);
memset((void*)ptr, 0, PG_SIZE);