From 8a91be0446bf5a1db1bdb4d749c9443d3c9237c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 29 Nov 2002 08:36:42 +0000 Subject: [PATCH] Removed two warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2115 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/arch/x86/arch_int.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/arch/x86/arch_int.c b/src/kernel/core/arch/x86/arch_int.c index 71fd3fc818..e5cecf7bfc 100755 --- a/src/kernel/core/arch/x86/arch_int.c +++ b/src/kernel/core/arch/x86/arch_int.c @@ -183,20 +183,20 @@ i386_handle_trap(struct iframe frame) unsigned int cr2; addr newip; - asm ("movl %%cr2, %0" : "=r" (cr2) ); + asm("movl %%cr2, %0" : "=r" (cr2)); // get the old interrupt enable/disable state and restore to that - if(frame.flags & 0x200) { + if (frame.flags & 0x200) { dprintf("page_fault: enabling interrupts\n"); if (!kernel_startup) - dprintf("page_fault, but interrupts are disabled. touching address %p from eip %p\n", cr2, frame.eip); + dprintf("page_fault, but interrupts are disabled. touching address %p from eip %p\n", (void *)cr2, (void *)frame.eip); enable_interrupts(); } ret = vm_page_fault(cr2, frame.eip, (frame.error_code & 0x2) != 0, (frame.error_code & 0x4) != 0, &newip); - if(newip != 0) { + if (newip != 0) { // the page fault handler wants us to modify the iframe to set the // IP the cpu will return to to be this ip frame.eip = newip;