diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:10:53 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:10:53 +0200 |
commit | c19415d2ffb6f063f91983ff505e2530ab500908 (patch) | |
tree | 021263be30daa438387ce3a12453a7719bc8dccf /src/kernel/mem | |
parent | 593bf4df3d8db49286c1a7ae4ef75c887b629930 (diff) | |
download | TCE-c19415d2ffb6f063f91983ff505e2530ab500908.tar.gz TCE-c19415d2ffb6f063f91983ff505e2530ab500908.zip |
Minor changes.
Diffstat (limited to 'src/kernel/mem')
-rw-r--r-- | src/kernel/mem/paging.cpp | 14 |
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; |