From 43d0bb8e3997022e5270f7f75f615a47819c929e Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Tue, 1 May 2012 23:48:56 +0200 Subject: Basic object system - THIS IS STILL A LONG WAY TO GO!! --- src/kernel/mem/paging.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/kernel/mem') 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; -- cgit v1.2.3