Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 2 Oct 2002 20:33:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 2 Oct 2002 20:33:46 -0400 Received: from 200-171-183-235.dsl.telesp.net.br ([200.171.183.235]:52741 "EHLO techlinux.com.br") by vger.kernel.org with ESMTP id ; Wed, 2 Oct 2002 20:33:44 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Carlos E Gorges To: linux-kernel@vger.kernel.org Subject: [PATCH] 2.5.40 - fix compilation w/out APIC (uniprocessor) Date: Wed, 2 Oct 2002 21:39:16 -0300 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210022139.16328.carlos@techlinux.com.br> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1585 Lines: 65 ps: ** UNTESTED ** diff -uar linux-2.5.40/arch/i386/kernel/mpparse.c linux-2.5/arch/i386/kernel/mpparse.c --- linux-2.5.40/arch/i386/kernel/mpparse.c Tue Oct 1 04:06:28 2002 +++ linux-2.5/arch/i386/kernel/mpparse.c Wed Oct 2 21:30:02 2002 @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -787,6 +788,7 @@ void __init mp_register_lapic_address ( u64 address) { +#ifdef CONFIG_X86_LOCAL_APIC mp_lapic_addr = (unsigned long) address; set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr); @@ -795,6 +797,7 @@ boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID)); Dprintk("Boot CPU = %d\n", boot_cpu_physical_apicid); +#endif } --- linux-2.5.40/include/asm-i386/apic.h Tue Oct 1 04:07:45 2002 +++ linux-2.5/include/asm-i386/apic.h Wed Oct 2 21:21:44 2002 @@ -7,8 +7,6 @@ #include #include -#ifdef CONFIG_X86_LOCAL_APIC - #define APIC_DEBUG 0 #if APIC_DEBUG @@ -16,6 +14,8 @@ #else #define Dprintk(x...) #endif + +#ifdef CONFIG_X86_LOCAL_APIC /* * Basic functions accessing APICs. -- _________________________ Carlos E Gorges (carlos@techlinux.com.br) Tech inform?tica LTDA Brazil _________________________ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/