summaryrefslogtreecommitdiff
path: root/src/kernel/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/mem')
-rw-r--r--src/kernel/mem/paging.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/mem/paging.cpp b/src/kernel/mem/paging.cpp
index 01a1780..a6daf68 100644
--- a/src/kernel/mem/paging.cpp
+++ b/src/kernel/mem/paging.cpp
@@ -136,14 +136,14 @@ uint32_t paging_fault(registers *regs) {
}
if (seg == 0) {
- NL; WHERE; ke_vt->writeStr("Unhandled Page Fault\t");
- ke_vt->writeStr("cr2:"); ke_vt->writeHex(addr);
+ NL; WHERE; *ke_vt << "Unhandled Page Fault\t";
+ *ke_vt << "cr2:" << addr;
NL; TAB;
- if (regs->err_code & 0x1) ke_vt->writeStr("present"); TAB;
- if (regs->err_code & 0x2) ke_vt->writeStr("write"); TAB;
- if (regs->err_code & 0x4) ke_vt->writeStr("user"); TAB;
- if (regs->err_code & 0x8) ke_vt->writeStr("rsvd"); TAB;
- if (regs->err_code & 0x10) ke_vt->writeStr("opfetch");
+ if (regs->err_code & 0x1) *ke_vt << "present"; TAB;
+ if (regs->err_code & 0x2) *ke_vt << "write"; TAB;
+ if (regs->err_code & 0x4) *ke_vt << "user"; TAB;
+ if (regs->err_code & 0x8) *ke_vt << "rsvd"; TAB;
+ if (regs->err_code & 0x10) *ke_vt << "opfetch";
return 1;
}
return 0;