Disabled debug in PMM, and fixed error in #UD reporting
authorJohn Hodge <[email protected]>
Mon, 31 May 2010 03:01:21 +0000 (11:01 +0800)
committerJohn Hodge <[email protected]>
Mon, 31 May 2010 03:01:21 +0000 (11:01 +0800)
Kernel/arch/x86_64/errors.c
Kernel/arch/x86_64/mm_phys.c

index c73ac0f..9f1d290 100644 (file)
@@ -67,8 +67,9 @@ void Error_Handler(tRegs *Regs)
        {
        case 6: // #UD
                Warning(" Offending bytes: %02x %02x %02x %02x",
-                       *(Uint8*)Regs->RIP+0, *(Uint8*)Regs->RIP+1,
-                       *(Uint8*)Regs->RIP+2, *(Uint8*)Regs->RIP+3);
+                       *(Uint8*)(Regs->RIP+0), *(Uint8*)(Regs->RIP+1),
+                       *(Uint8*)(Regs->RIP+2), *(Uint8*)(Regs->RIP+3)
+                       );
                break;
        }
        
index 77ca92e..e8d834d 100644 (file)
@@ -3,7 +3,7 @@
  * 
  * Physical Memory Manager
  */
-#define DEBUG  1
+#define DEBUG  0
 #include <acess.h>
 #include <mboot.h>
 #include <mm_virt.h>

UCC git Repository :: git.ucc.asn.au