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: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[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 2a2c6f3ad9ed8ada9ed9034df2fc4d5b9aa64d12..2533d0bac8dc1829f6361ae7caa5428e9bd1e495 100644
(file)
--- a/
lunaix-os/arch/i386/mm/pfault.c
+++ b/
lunaix-os/arch/i386/mm/pfault.c
@@
-67,7
+67,7
@@
intr_routine_page_fault(const isr_param* param)
if (PG_IS_PRESENT(*pte)) {
if (((errcode ^ mapping.flags) & PG_ALLOW_USER)) {
// invalid access
if (PG_IS_PRESENT(*pte)) {
if (((errcode ^ mapping.flags) & PG_ALLOW_USER)) {
// invalid access
- kprintf(KDEBUG "invalid user access. (%p->%p, attr:0x%x)
\n
",
+ kprintf(KDEBUG "invalid user access. (%p->%p, attr:0x%x)",
mapping.va,
mapping.pa,
mapping.flags);
mapping.va,
mapping.pa,
mapping.flags);
@@
-133,7
+133,7
@@
intr_routine_page_fault(const isr_param* param)
}
if (errno < 0) {
}
if (errno < 0) {
- kprintf(KERROR "fail to populate page (%d)
\n
", errno);
+ kprintf(KERROR "fail to populate page (%d)", errno);
goto segv_term;
}
goto segv_term;
}
@@
-148,10
+148,10
@@
intr_routine_page_fault(const isr_param* param)
;
oom:
;
oom:
- kprintf(KERROR "out of memory
\n
");
+ kprintf(KERROR "out of memory");
segv_term:
segv_term:
- kprintf(KERROR "(pid: %d) Segmentation fault on %p (%p:%p,e=0x%x)
\n
",
+ kprintf(KERROR "(pid: %d) Segmentation fault on %p (%p:%p,e=0x%x)",
__current->pid,
ptr,
param->execp->cs,
__current->pid,
ptr,
param->execp->cs,