From c19415d2ffb6f063f91983ff505e2530ab500908 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Fri, 18 May 2012 11:10:53 +0200 Subject: Minor changes. --- src/kernel/mem/paging.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/mem') 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; -- cgit v1.2.3