summaryrefslogtreecommitdiff
path: root/src/kernel/mem
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-01 23:48:56 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-01 23:48:56 +0200
commit43d0bb8e3997022e5270f7f75f615a47819c929e (patch)
tree937992d286966edecf81b405e414230c85d19bad /src/kernel/mem
parente9683297bf480f9590b0e5796f4520fb430e2e03 (diff)
downloadTCE-43d0bb8e3997022e5270f7f75f615a47819c929e.tar.gz
TCE-43d0bb8e3997022e5270f7f75f615a47819c929e.zip
Basic object system - THIS IS STILL A LONG WAY TO GO!!
Diffstat (limited to 'src/kernel/mem')
-rw-r--r--src/kernel/mem/paging.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/kernel/mem/paging.c b/src/kernel/mem/paging.c
index 0527f06..8a1e2db 100644
--- a/src/kernel/mem/paging.c
+++ b/src/kernel/mem/paging.c
@@ -137,14 +137,13 @@ uint32_t paging_fault(struct registers *regs) {
}
if (seg == 0) {
- NL; WHERE; monitor_write("Unhandled Page Fault\t");
+ NL; WHERE; monitor_write("Unhandled Page Fault - ");
monitor_write("cr2:"); monitor_writeHex(addr);
- NL; TAB;
- if (regs->err_code & 0x1) monitor_write("present"); TAB;
- if (regs->err_code & 0x2) monitor_write("write"); TAB;
- if (regs->err_code & 0x4) monitor_write("user"); TAB;
- if (regs->err_code & 0x8) monitor_write("rsvd"); TAB;
- if (regs->err_code & 0x10) monitor_write("opfetch");
+ if (regs->err_code & 0x1) monitor_write(" present");
+ if (regs->err_code & 0x2) monitor_write(" write");
+ if (regs->err_code & 0x4) monitor_write(" user");
+ if (regs->err_code & 0x8) monitor_write(" rsvd");
+ if (regs->err_code & 0x10) monitor_write(" opfetch");
return 1;
}
return 0;