Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264575AbUAJA6i (ORCPT ); Fri, 9 Jan 2004 19:58:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264594AbUAJA6i (ORCPT ); Fri, 9 Jan 2004 19:58:38 -0500 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.202.12]:29139 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id S264575AbUAJA6A (ORCPT ); Fri, 9 Jan 2004 19:58:00 -0500 Date: Sat, 10 Jan 2004 01:57:54 +0100 From: Adrian Bunk To: Nick Piggin Cc: Matt Mackall , linux-kernel Subject: [3/4] proof of concept: make arch/i386/kernel/cpu/Makefile CPU specific Message-ID: <20040110005754.GF25089@fs.tum.de> References: <20040106054859.GA18208@waste.org> <3FFA56D6.6040808@cyberone.com.au> <20040106064607.GB18208@waste.org> <3FFA5ED3.6040000@cyberone.com.au> <20040110004625.GB25089@fs.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040110004625.GB25089@fs.tum.de> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3072 Lines: 121 - make arch/i386/kernel/cpu/Makefile CPU specific diffstat output: arch/i386/kernel/cpu/Makefile | 34 +++++++++++++++++++++++++--------- arch/i386/kernel/cpu/common.c | 27 +++++++++++++++++++++++++++ arch/i386/mm/init.c | 6 +++++- 3 files changed, 57 insertions(+), 10 deletions(-) --- linux-2.6.0-test5-mm4/arch/i386/kernel/cpu/Makefile.old 2003-09-25 14:35:17.000000000 +0200 +++ linux-2.6.0-test5-mm4/arch/i386/kernel/cpu/Makefile 2003-09-25 14:35:20.000000000 +0200 @@ -2,16 +2,32 @@ # Makefile for x86-compatible CPU details and quirks # -obj-y := common.o proc.o +obj-y := common.o proc.o + + +obj-$(CONFIG_CPU_486) += amd.o +obj-$(CONFIG_CPU_586) += amd.o +obj-$(CONFIG_CPU_K6) += amd.o +obj-$(CONFIG_CPU_K7) += amd.o +obj-$(CONFIG_CPU_K8) += amd.o + +obj-$(CONFIG_CPU_WINCHIP) += centaur.o +obj-$(CONFIG_CPU_CYRIXIII) += centaur.o +obj-$(CONFIG_CPU_VIAC3_2) += centaur.o + +obj-$(CONFIG_CPU_486) += cyrix.o +obj-$(CONFIG_CPU_586) += cyrix.o + +obj-$(CONFIG_CPU_INTEL) += intel.o + +obj-$(CONFIG_CPU_586) += nexgen.o + +obj-$(CONFIG_CPU_586) += rise.o + +obj-$(CONFIG_CPU_CRUSOE) += transmeta.o + +obj-$(CONFIG_CPU_486) += umc.o -obj-y += amd.o -obj-y += cyrix.o -obj-y += centaur.o -obj-y += transmeta.o -obj-y += intel.o -obj-y += rise.o -obj-y += nexgen.o -obj-y += umc.o obj-$(CONFIG_X86_MCE) += mcheck/ --- linux-2.6.0-test5-mm4/arch/i386/kernel/cpu/common.c.old 2003-09-25 14:35:17.000000000 +0200 +++ linux-2.6.0-test5-mm4/arch/i386/kernel/cpu/common.c 2003-09-25 14:35:20.000000000 +0200 @@ -434,15 +434,42 @@ void __init early_cpu_init(void) { + +#if defined(CONFIG_CPU_INTEL) intel_cpu_init(); +#endif + +#if defined(CONFIG_CPU_486) || defined(CONFIG_CPU_586) cyrix_init_cpu(); +#endif + +#if defined(CONFIG_CPU_486) nsc_init_cpu(); +#endif + +#if defined(CONFIG_CPU_486) || defined(CONFIG_CPU_586) || defined(CONFIG_CPU_K6) || defined(CONFIG_CPU_K7) || defined(CONFIG_CPU_K8) amd_init_cpu(); +#endif + +#if defined(CONFIG_CPU_WINCHIP) || defined(CONFIG_CPU_CYRIXIII) || defined(CONFIG_CPU_VIAC3_2) centaur_init_cpu(); +#endif + +#if defined(CONFIG_CPU_CRUSOE) transmeta_init_cpu(); +#endif + +#if defined(CONFIG_CPU_586) rise_init_cpu(); +#endif + +#if defined(CONFIG_CPU_586) nexgen_init_cpu(); +#endif + +#if defined(CONFIG_CPU_486) umc_init_cpu(); +#endif #ifdef CONFIG_DEBUG_PAGEALLOC /* pse is not compatible with on-the-fly unmapping, --- linux-2.6.0-test5-mm4/arch/i386/mm/init.c.old 2003-09-25 14:35:17.000000000 +0200 +++ linux-2.6.0-test5-mm4/arch/i386/mm/init.c 2003-09-25 14:35:20.000000000 +0200 @@ -423,8 +423,12 @@ if (!mem_map) BUG(); #endif - + +#ifdef CONFIG_CPU_686 bad_ppro = ppro_with_ram_bug(); +#else + bad_ppro = 0; +#endif #ifdef CONFIG_HIGHMEM /* check that fixmap and pkmap do not overlap */ - 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/