From: John Hodge Date: Mon, 31 May 2010 03:01:21 +0000 (+0800) Subject: Disabled debug in PMM, and fixed error in #UD reporting X-Git-Tag: rel0.06~157 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f70b5b50f5bb11a98f2155e840772738afc0f6de;p=tpg%2Facess2.git Disabled debug in PMM, and fixed error in #UD reporting --- diff --git a/Kernel/arch/x86_64/errors.c b/Kernel/arch/x86_64/errors.c index c73ac0ff..9f1d290a 100644 --- a/Kernel/arch/x86_64/errors.c +++ b/Kernel/arch/x86_64/errors.c @@ -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; } diff --git a/Kernel/arch/x86_64/mm_phys.c b/Kernel/arch/x86_64/mm_phys.c index 77ca92e7..e8d834d8 100644 --- a/Kernel/arch/x86_64/mm_phys.c +++ b/Kernel/arch/x86_64/mm_phys.c @@ -3,7 +3,7 @@ * * Physical Memory Manager */ -#define DEBUG 1 +#define DEBUG 0 #include #include #include