CINXE.COM
LKML: Evgeniy Polyakov: [RFC] : remove unreliable, unused and unmainained arch from kernel.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>LKML: Evgeniy Polyakov: [RFC] : remove unreliable, unused and unmainained arch from kernel.</title><link href="/css/message.css" rel="stylesheet" type="text/css" /><link href="/css/wrap.css" rel="alternate stylesheet" type="text/css" title="wrap" /><link href="/css/nowrap.css" rel="stylesheet" type="text/css" title="nowrap" /><link href="/favicon.ico" rel="shortcut icon" /><script src="/js/simple-calendar.js" type="text/javascript"></script><script src="/js/styleswitcher.js" type="text/javascript"></script><link rel="alternate" type="application/rss+xml" title="lkml.org : last 100 messages" href="/rss.php" /><link rel="alternate" type="application/rss+xml" title="lkml.org : last messages by Evgeniy Polyakov" href="/groupie.php?aid=3643" /><!--Matomo--><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setDoNotTrack", true]); _paq.push(["disableCookies"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//m.lkml.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><!--End Matomo Code--></head><body onload="es.jasper.simpleCalendar.init();" itemscope="itemscope" itemtype="http://schema.org/BlogPosting"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="180" align="center"><a href="/"><img style="border:0;width:135px;height:32px" src="/images/toprowlk.gif" alt="lkml.org" /></a></td><td width="32">聽</td><td class="nb"><div><a class="nb" href="/lkml"> [lkml]</a> 聽 <a class="nb" href="/lkml/2005"> [2005]</a> 聽 <a class="nb" href="/lkml/2005/4"> [Apr]</a> 聽 <a class="nb" href="/lkml/2005/4/1"> [1]</a> 聽 <a class="nb" href="/lkml/last100"> [last100]</a> 聽 <a href="/rss.php"><img src="/images/rss-or.gif" border="0" alt="RSS Feed" /></a></div><div>Views: <a href="#" class="nowrap" onclick="setActiveStyleSheet('wrap');return false;">[wrap]</a><a href="#" class="wrap" onclick="setActiveStyleSheet('nowrap');return false;">[no wrap]</a> 聽 <a class="nb" href="/lkml/mheaders/2005/4/1/99" onclick="this.href='/lkml/headers'+'/2005/4/1/99';">[headers]</a>聽 <a href="/lkml/bounce/2005/4/1/99">[forward]</a>聽 </div></td><td width="32">聽</td></tr><tr><td valign="top"><div class="es-jasper-simpleCalendar" baseurl="/lkml/"></div><div class="threadlist">Messages in this thread</div><ul class="threadlist"><li class="root"><a href="/lkml/2005/4/1/96">First message in thread</a></li><li><a href="/lkml/2005/4/1/96">Evgeniy Polyakov</a><ul><li><a href="/lkml/2005/4/1/97">Evgeniy Polyakov</a><ul><li class="origin"><a href="">Evgeniy Polyakov</a></li><li><a href="/lkml/2005/4/1/107">linux-os</a><ul><li><a href="/lkml/2005/4/1/121">Renate Meijer</a><ul><li><a href="/lkml/2005/4/1/128">"Richard B. Johnson"</a></li></ul></li><li><a href="/lkml/2005/4/1/126">=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=</a></li><li><a href="/lkml/2005/4/1/129">"Richard B. Johnson"</a><ul><li><a href="/lkml/2005/4/1/142">=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=</a></li></ul></li></ul></li></ul></li><li><a href="/lkml/2005/4/1/103">linux-os</a><ul><li><a href="/lkml/2005/4/4/192">Giuseppe Bilotta</a></li></ul></li></ul></li></ul><div class="threadlist">Patch in this message</div><ul class="threadlist"><li><a href="/lkml/diff/2005/4/1/99/1">Get diff 1</a></li></ul></td><td width="32" rowspan="2" class="c" valign="top"><img src="/images/icornerl.gif" width="32" height="32" alt="/" /></td><td class="c" rowspan="2" valign="top" style="padding-top: 1em"><table><tr><td><table><tr><td class="lp">Subject</td><td class="rp" itemprop="name">[RFC] : remove unreliable, unused and unmainained arch from kernel.</td></tr><tr><td class="lp">Date</td><td class="rp" itemprop="datePublished">Fri, 1 Apr 2005 16:11:33 +0400</td></tr><tr><td class="lp">From</td><td class="rp" itemprop="author">Evgeniy Polyakov <></td></tr></table></td><td></td></tr></table><pre itemprop="articleBody"><br />diff -ru ./linux-2.6.9-orig/arch/arm/Kconfig ./linux-2.6.9/arch/arm/Kconfig<br />--- ./linux-2.6.9-orig/arch/arm/Kconfig 2005-03-31 16:27:02.000000000 +0400<br />+++ ./linux-2.6.9/arch/arm/Kconfig 2005-03-31 17:41:31.000000000 +0400<br />@@ -278,7 +278,7 @@<br /> run faster if you say N here.<br /> <br /> See also the <file:Documentation/smp.tex>,<br />- <file:Documentation/smp.txt>, <file:Documentation/i386/IO-APIC.txt>,<br />+ <file:Documentation/smp.txt>,<br /> <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at<br /> <<a href="http://www.linuxdoc.org/docs.html#howto>.">http://www.linuxdoc.org/docs.html#howto>.</a><br /> <br />diff -ru ./linux-2.6.9-orig/arch/ppc/boot/utils/mkbugboot.c ./linux-2.6.9/arch/ppc/boot/utils/mkbugboot.c<br />--- ./linux-2.6.9-orig/arch/ppc/boot/utils/mkbugboot.c 2005-03-31 16:27:00.000000000 +0400<br />+++ ./linux-2.6.9/arch/ppc/boot/utils/mkbugboot.c 2005-03-31 17:40:33.000000000 +0400<br />@@ -27,13 +27,8 @@<br /> #include <stdint.h><br /> #endif<br /> <br />-#ifdef __i386__<br />-#define cpu_to_be32(x) le32_to_cpu(x)<br />-#define cpu_to_be16(x) le16_to_cpu(x)<br />-#else<br /> #define cpu_to_be32(x) (x)<br /> #define cpu_to_be16(x) (x)<br />-#endif<br /> <br /> #define cpu_to_le32(x) le32_to_cpu((x))<br /> unsigned long le32_to_cpu(unsigned long x)<br />diff -ru ./linux-2.6.9-orig/arch/ppc/boot/utils/mkprep.c ./linux-2.6.9/arch/ppc/boot/utils/mkprep.c<br />--- ./linux-2.6.9-orig/arch/ppc/boot/utils/mkprep.c 2005-03-31 16:27:00.000000000 +0400<br />+++ ./linux-2.6.9/arch/ppc/boot/utils/mkprep.c 2005-03-31 17:40:52.000000000 +0400<br />@@ -163,13 +163,8 @@<br /> bzero( block, sizeof block );<br /> <br /> /* set entry point and boot image size skipping over elf header */<br />-#ifdef __i386__<br />- *entry = 0x400/*+65536*/;<br />- *length = info.st_size-elfhdr_size+0x400;<br />-#else<br /> *entry = cpu_to_le32(0x400/*+65536*/);<br /> *length = cpu_to_le32(info.st_size-elfhdr_size+0x400);<br />-#endif /* __i386__ */<br /> <br /> /* sets magic number for msdos partition (used by linux) */<br /> block[510] = 0x55;<br />@@ -206,18 +201,10 @@<br /> pe.beginning_sector = cpu_to_le32(1);<br /> #else<br /> /* This has to be 0 on the PowerStack? */<br />-#ifdef __i386__<br />- pe.beginning_sector = 0;<br />-#else<br /> pe.beginning_sector = cpu_to_le32(0);<br />-#endif /* __i386__ */<br /> #endif<br /> <br />-#ifdef __i386__<br />- pe.number_of_sectors = 2*18*80-1;<br />-#else<br /> pe.number_of_sectors = cpu_to_le32(2*18*80-1);<br />-#endif /* __i386__ */<br /> <br /> memcpy(&block[0x1BE], &pe, sizeof(pe));<br /> <br />diff -ru ./linux-2.6.9-orig/arch/um/Makefile-x86_64 ./linux-2.6.9/arch/um/Makefile-x86_64<br />--- ./linux-2.6.9-orig/arch/um/Makefile-x86_64 2005-03-31 16:27:10.000000000 +0400<br />+++ ./linux-2.6.9/arch/um/Makefile-x86_64 2005-03-31 17:43:05.000000000 +0400<br />@@ -7,7 +7,7 @@<br /> CFLAGS += -U__$(SUBARCH)__ -fno-builtin<br /> ARCH_USER_CFLAGS := -D__x86_64__<br /> <br />-ELF_ARCH := i386:x86-64<br />+ELF_ARCH := x86-64<br /> ELF_FORMAT := elf64-x86-64<br /> <br /> SYS_UTIL_DIR := $(ARCH_DIR)/sys-x86_64/util<br />diff -ru ./linux-2.6.9-orig/arch/um/os-Linux/user_syms.c ./linux-2.6.9/arch/um/os-Linux/user_syms.c<br />--- ./linux-2.6.9-orig/arch/um/os-Linux/user_syms.c 2005-03-31 16:27:10.000000000 +0400<br />+++ ./linux-2.6.9/arch/um/os-Linux/user_syms.c 2005-03-31 17:42:32.000000000 +0400<br />@@ -34,11 +34,6 @@<br /> int sym(void); \<br /> EXPORT_SYMBOL(sym);<br /> <br />-#ifdef SUBARCH_i386<br />-EXPORT_SYMBOL(vsyscall_ehdr);<br />-EXPORT_SYMBOL(vsyscall_end);<br />-#endif<br />-<br /> EXPORT_SYMBOL_PROTO(__errno_location);<br /> <br /> EXPORT_SYMBOL_PROTO(access);<br />diff -ru ./linux-2.6.9-orig/arch/x86_64/kernel/acpi/Makefile ./linux-2.6.9/arch/x86_64/kernel/acpi/Makefile<br />--- ./linux-2.6.9-orig/arch/x86_64/kernel/acpi/Makefile 2005-03-31 16:27:10.000000000 +0400<br />+++ ./linux-2.6.9/arch/x86_64/kernel/acpi/Makefile 2005-03-31 17:44:14.000000000 +0400<br />@@ -1,3 +1 @@<br />-obj-$(CONFIG_ACPI_BOOT) := boot.o<br />-boot-$(CONFIG_ACPI_BOOT) := ../../../i386/kernel/acpi/boot.o<br /> obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup.o<br />diff -ru ./linux-2.6.9-orig/arch/x86_64/kernel/early_printk.c ./linux-2.6.9/arch/x86_64/kernel/early_printk.c<br />--- ./linux-2.6.9-orig/arch/x86_64/kernel/early_printk.c 2005-03-31 16:27:10.000000000 +0400<br />+++ ./linux-2.6.9/arch/x86_64/kernel/early_printk.c 2005-03-31 17:45:58.000000000 +0400<br />@@ -7,11 +7,7 @@<br /> <br /> /* Simple VGA output */<br /> <br />-#ifdef __i386__<br />-#define VGABASE (__ISA_IO_base + 0xb8000)<br />-#else<br /> #define VGABASE ((void __iomem *)0xffffffff800b8000UL)<br />-#endif<br /> <br /> #define MAX_YPOS 25<br /> #define MAX_XPOS 80<br />diff -ru ./linux-2.6.9-orig/arch/x86_64/kernel/Makefile ./linux-2.6.9/arch/x86_64/kernel/Makefile<br />--- ./linux-2.6.9-orig/arch/x86_64/kernel/Makefile 2005-03-31 16:27:10.000000000 +0400<br />+++ ./linux-2.6.9/arch/x86_64/kernel/Makefile 2005-03-31 18:53:34.000000000 +0400<br />@@ -11,8 +11,6 @@<br /> <br /> obj-$(CONFIG_X86_MCE) += mce.o<br /> obj-$(CONFIG_X86_MCE_INTEL) += mce_intel.o<br />-obj-$(CONFIG_MTRR) += ../../i386/kernel/cpu/mtrr/<br />-obj-$(CONFIG_ACPI_BOOT) += acpi/<br /> obj-$(CONFIG_X86_MSR) += msr.o<br /> obj-$(CONFIG_MICROCODE) += microcode.o<br /> obj-$(CONFIG_X86_CPUID) += cpuid.o<br />diff -ru ./linux-2.6.9-orig/drivers/acpi/numa.c ./linux-2.6.9/drivers/acpi/numa.c<br />--- ./linux-2.6.9-orig/drivers/acpi/numa.c 2005-03-31 16:26:46.000000000 +0400<br />+++ ./linux-2.6.9/drivers/acpi/numa.c 2005-03-31 17:04:50.000000000 +0400<br />@@ -95,7 +95,7 @@<br /> <br /> slit = (struct acpi_table_slit *) __va(phys_addr);<br /> <br />- /* downcast just for %llu vs %lu for i386/ia64 */<br />+ /* downcast just for %llu vs %lu for ia64 */<br /> localities = (u32) slit->localities;<br /> <br /> acpi_numa_slit_init(slit);<br />diff -ru ./linux-2.6.9-orig/drivers/acpi/osl.c ./linux-2.6.9/drivers/acpi/osl.c<br />--- ./linux-2.6.9-orig/drivers/acpi/osl.c 2005-03-31 16:26:46.000000000 +0400<br />+++ ./linux-2.6.9/drivers/acpi/osl.c 2005-03-31 17:04:33.000000000 +0400<br />@@ -1017,7 +1017,7 @@<br /> u8<br /> acpi_os_readable(void *ptr, acpi_size len)<br /> {<br />-#if defined(__i386__) || defined(__x86_64__) <br />+#if defined(__x86_64__) <br /> char tmp;<br /> return !__get_user(tmp, (char __user *)ptr) && !__get_user(tmp, (char __user *)ptr + len - 1);<br /> #endif<br />diff -ru ./linux-2.6.9-orig/drivers/atm/eni.c ./linux-2.6.9/drivers/atm/eni.c<br />--- ./linux-2.6.9-orig/drivers/atm/eni.c 2005-03-31 16:26:57.000000000 +0400<br />+++ ./linux-2.6.9/drivers/atm/eni.c 2005-03-31 17:24:42.000000000 +0400<br />@@ -31,7 +31,7 @@<br /> #include "suni.h"<br /> #include "eni.h"<br /> <br />-#if !defined(__i386__) && !defined(__x86_64__)<br />+#if !defined(__x86_64__)<br /> #ifndef ioremap_nocache<br /> #define ioremap_nocache(X,Y) ioremap(X,Y)<br /> #endif <br />diff -ru ./linux-2.6.9-orig/drivers/atm/fore200e.c ./linux-2.6.9/drivers/atm/fore200e.c<br />--- ./linux-2.6.9-orig/drivers/atm/fore200e.c 2005-03-31 16:26:58.000000000 +0400<br />+++ ./linux-2.6.9/drivers/atm/fore200e.c 2005-03-31 17:24:59.000000000 +0400<br />@@ -7,7 +7,7 @@<br /> Based on the PCA-200E driver from Uwe Dannowski (Uwe.Dannowski@inf.tu-dresden.de).<br /> <br /> This driver simultaneously supports PCA-200E and SBA-200E adapters<br />- on i386, alpha (untested), powerpc, sparc and sparc64 architectures.<br />+ on alpha (untested), powerpc, sparc and sparc64 architectures.<br /> <br /> This program is free software; you can redistribute it and/or modify<br /> it under the terms of the GNU General Public License as published by<br />diff -ru ./linux-2.6.9-orig/drivers/base/dmapool.c ./linux-2.6.9/drivers/base/dmapool.c<br />--- ./linux-2.6.9-orig/drivers/base/dmapool.c 2005-03-31 16:26:44.000000000 +0400<br />+++ ./linux-2.6.9/drivers/base/dmapool.c 2005-03-31 16:54:19.000000000 +0400<br />@@ -1,8 +1,6 @@<br /> <br /> #include <linux/device.h><br /> #include <linux/mm.h><br />-#include <asm/io.h> /* Needed for i386 to build */<br />-#include <asm/scatterlist.h> /* Needed for i386 to build */<br /> #include <linux/dma-mapping.h><br /> #include <linux/dmapool.h><br /> #include <linux/slab.h><br />diff -ru ./linux-2.6.9-orig/drivers/block/floppy.c ./linux-2.6.9/drivers/block/floppy.c<br />--- ./linux-2.6.9-orig/drivers/block/floppy.c 2005-03-31 16:26:56.000000000 +0400<br />+++ ./linux-2.6.9/drivers/block/floppy.c 2005-03-31 17:18:29.000000000 +0400<br />@@ -1832,7 +1832,7 @@<br /> reset_fdc_info(0);<br /> <br /> /* Pseudo-DMA may intercept 'reset finished' interrupt. */<br />- /* Irrelevant for systems with true DMA (i386). */<br />+ /* Irrelevant for systems with true DMA. */<br /> <br /> flags = claim_dma_lock();<br /> fd_disable_dma();<br />diff -ru ./linux-2.6.9-orig/drivers/char/agp/amd64-agp.c ./linux-2.6.9/drivers/char/agp/amd64-agp.c<br />--- ./linux-2.6.9-orig/drivers/char/agp/amd64-agp.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/agp/amd64-agp.c 2005-03-31 16:57:49.000000000 +0400<br />@@ -370,7 +370,6 @@<br /> if (fix_northbridge(loop_dev, pdev, cap_ptr) < 0) {<br /> printk(KERN_ERR PFX "No usable aperture found.\n");<br /> #ifdef __x86_64__<br />- /* should port this to i386 */<br /> printk(KERN_ERR PFX "Consider rebooting with iommu=memaper=2 to get a good aperture.\n");<br /> #endif<br /> return -1;<br />diff -ru ./linux-2.6.9-orig/drivers/char/drm/ati_pcigart.c ./linux-2.6.9/drivers/char/drm/ati_pcigart.c<br />--- ./linux-2.6.9-orig/drivers/char/drm/ati_pcigart.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/drm/ati_pcigart.c 2005-03-31 16:57:01.000000000 +0400<br />@@ -194,7 +194,7 @@<br /> <br /> ret = 1;<br /> <br />-#if defined(__i386__) || defined(__x86_64__)<br />+#if defined(__x86_64__)<br /> wbinvd();<br /> #else<br /> mb();<br />diff -ru ./linux-2.6.9-orig/drivers/char/drm/drm_init.c ./linux-2.6.9/drivers/char/drm/drm_init.c<br />--- ./linux-2.6.9-orig/drivers/char/drm/drm_init.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/drm/drm_init.c 2005-03-31 16:56:20.000000000 +0400<br />@@ -42,9 +42,6 @@<br /> */<br /> int drm_cpu_valid(void)<br /> {<br />-#if defined(__i386__)<br />- if (boot_cpu_data.x86 == 3) return 0; /* No cmpxchg on a 386 */<br />-#endif<br /> #if defined(__sparc__) && !defined(__sparc_v9__)<br /> return 0; /* No cmpxchg before v9 sparc. */<br /> #endif<br />diff -ru ./linux-2.6.9-orig/drivers/char/drm/drm_proc.c ./linux-2.6.9/drivers/char/drm/drm_proc.c<br />--- ./linux-2.6.9-orig/drivers/char/drm/drm_proc.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/drm/drm_proc.c 2005-03-31 16:56:46.000000000 +0400<br />@@ -473,9 +473,6 @@<br /> int len = 0;<br /> drm_vma_entry_t *pt;<br /> struct vm_area_struct *vma;<br />-#if defined(__i386__)<br />- unsigned int pgprot;<br />-#endif<br /> <br /> if (offset > DRM_PROC_LIMIT) {<br /> *eof = 1;<br />@@ -502,19 +499,6 @@<br /> vma->vm_flags & VM_IO ? 'i' : '-',<br /> VM_OFFSET(vma));<br /> <br />-#if defined(__i386__)<br />- pgprot = pgprot_val(vma->vm_page_prot);<br />- DRM_PROC_PRINT(" %c%c%c%c%c%c%c%c%c",<br />- pgprot & _PAGE_PRESENT ? 'p' : '-',<br />- pgprot & _PAGE_RW ? 'w' : 'r',<br />- pgprot & _PAGE_USER ? 'u' : 's',<br />- pgprot & _PAGE_PWT ? 't' : 'b',<br />- pgprot & _PAGE_PCD ? 'u' : 'c',<br />- pgprot & _PAGE_ACCESSED ? 'a' : '-',<br />- pgprot & _PAGE_DIRTY ? 'd' : '-',<br />- pgprot & _PAGE_PSE ? 'm' : 'k',<br />- pgprot & _PAGE_GLOBAL ? 'g' : 'l' );<br />-#endif<br /> DRM_PROC_PRINT("\n");<br /> }<br /> <br />diff -ru ./linux-2.6.9-orig/drivers/char/drm/drm_vm.c ./linux-2.6.9/drivers/char/drm/drm_vm.c<br />--- ./linux-2.6.9-orig/drivers/char/drm/drm_vm.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/drm/drm_vm.c 2005-03-31 16:56:33.000000000 +0400<br />@@ -575,7 +575,7 @@<br /> <br /> if (!capable(CAP_SYS_ADMIN) && (map->flags & _DRM_READ_ONLY)) {<br /> vma->vm_flags &= ~(VM_WRITE | VM_MAYWRITE);<br />-#if defined(__i386__) || defined(__x86_64__)<br />+#if defined(__x86_64__)<br /> pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW;<br /> #else<br /> /* Ye gads this is ugly. With more thought<br />@@ -604,7 +604,7 @@<br /> case _DRM_FRAME_BUFFER:<br /> case _DRM_REGISTERS:<br /> if (VM_OFFSET(vma) >= __pa(high_memory)) {<br />-#if defined(__i386__) || defined(__x86_64__)<br />+#if defined(__x86_64__)<br /> if (boot_cpu_data.x86 > 3 && map->type != _DRM_AGP) {<br /> pgprot_val(vma->vm_page_prot) |= _PAGE_PCD;<br /> pgprot_val(vma->vm_page_prot) &= ~_PAGE_PWT;<br />diff -ru ./linux-2.6.9-orig/drivers/char/ftape/lowlevel/ftape-calibr.c ./linux-2.6.9/drivers/char/ftape/lowlevel/ftape-calibr.c<br />--- ./linux-2.6.9-orig/drivers/char/ftape/lowlevel/ftape-calibr.c 2005-03-31 16:26:44.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/ftape/lowlevel/ftape-calibr.c 2005-03-31 16:55:18.000000000 +0400<br />@@ -34,8 +34,6 @@<br /> #elif defined(__x86_64__)<br /> # include <asm/msr.h><br /> # include <asm/timex.h><br />-#elif defined(__i386__)<br />-# include <linux/timex.h><br /> #endif<br /> #include <linux/ftape.h><br /> #include "../lowlevel/ftape-tracing.h"<br />@@ -44,7 +42,7 @@<br /> <br /> #undef DEBUG<br /> <br />-#if !defined(__alpha__) && !defined(__i386__) && !defined(__x86_64__)<br />+#if !defined(__alpha__) && !defined(__x86_64__)<br /> # error Ftape is not implemented for this architecture!<br /> #endif<br /> <br />@@ -79,25 +77,6 @@<br /> unsigned long r;<br /> rdtscl(r);<br /> return r;<br />-#elif defined(__i386__)<br />-<br />-/*<br />- * Note that there is some time between counter underflowing and jiffies<br />- * increasing, so the code below won't always give correct output.<br />- * -Vojtech<br />- */<br />-<br />- unsigned long flags;<br />- __u16 lo;<br />- __u16 hi;<br />-<br />- spin_lock_irqsave(&calibr_lock, flags);<br />- outb_p(0x00, 0x43); /* latch the count ASAP */<br />- lo = inb_p(0x40); /* read the latched count */<br />- lo |= inb(0x40) << 8;<br />- hi = jiffies;<br />- spin_unlock_irqrestore(&calibr_lock, flags);<br />- return ((hi + 1) * (unsigned int) LATCH) - lo; /* downcounter ! */<br /> #endif<br /> }<br /> <br />@@ -105,16 +84,6 @@<br /> {<br /> #if defined(__alpha__) || defined(__x86_64__)<br /> return ftape_timestamp();<br />-#elif defined(__i386__)<br />- unsigned int count;<br />- unsigned long flags;<br />- <br />- spin_lock_irqsave(&calibr_lock, flags);<br />- outb_p(0x00, 0x43); /* latch the count ASAP */<br />- count = inb_p(0x40); /* read the latched count */<br />- count |= inb(0x40) << 8;<br />- spin_unlock_irqrestore(&calibr_lock, flags);<br />- return (LATCH - count); /* normal: downcounter */<br /> #endif<br /> }<br /> <br />@@ -122,15 +91,6 @@<br /> {<br /> #if defined(__alpha__) || defined(__x86_64__)<br /> return (t1 - t0);<br />-#elif defined(__i386__)<br />- /*<br />- * This is tricky: to work for both short and full ftape_timestamps<br />- * we'll have to discriminate between these.<br />- * If it _looks_ like short stamps with wrapping around we'll<br />- * asume it are. This will generate a small error if it really<br />- * was a (very large) delta from full ftape_timestamps.<br />- */<br />- return (t1 <= t0 && t0 <= LATCH) ? t1 + LATCH - t0 : t1 - t0;<br /> #endif<br /> }<br /> <br />@@ -138,8 +98,6 @@<br /> {<br /> #if defined(__alpha__) || defined(__x86_64__)<br /> return (ps_per_cycle * count) / 1000000UL;<br />-#elif defined(__i386__)<br />- return (10000 * count) / ((CLOCK_TICK_RATE + 50) / 100);<br /> #endif<br /> }<br /> <br />@@ -147,8 +105,6 @@<br /> {<br /> /*<br /> * Calculate difference in usec for ftape_timestamp results t0 & t1.<br />- * Note that on the i386 platform with short time-stamps, the<br />- * maximum allowed timespan is 1/HZ or we'll lose ticks!<br /> */<br /> return usecs(diff(t0, t1));<br /> }<br />@@ -202,11 +158,6 @@<br /> unsigned int tc = 0;<br /> unsigned int count;<br /> unsigned int time;<br />-#if defined(__i386__)<br />- unsigned int old_tc = 0;<br />- unsigned int old_count = 1;<br />- unsigned int old_time = 1;<br />-#endif<br /> TRACE_FUN(ft_t_flow);<br /> <br /> if (first_time) { /* get idea of I/O performance */<br />@@ -252,19 +203,6 @@<br /> if (time >= 100*1000) {<br /> break;<br /> }<br />-#elif defined(__i386__)<br />- /*<br />- * increase the count until the resulting time nears 2/HZ,<br />- * then the tc will drop sharply because we lose LATCH counts.<br />- */<br />- if (tc <= old_tc / 2) {<br />- time = old_time;<br />- count = old_count;<br />- break;<br />- }<br />- old_tc = tc;<br />- old_count = count;<br />- old_time = time;<br /> #endif<br /> count *= 2;<br /> }<br />diff -ru ./linux-2.6.9-orig/drivers/char/mem.c ./linux-2.6.9/drivers/char/mem.c<br />--- ./linux-2.6.9-orig/drivers/char/mem.c 2005-03-31 16:26:46.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/mem.c 2005-03-31 17:01:51.000000000 +0400<br />@@ -42,34 +42,15 @@<br /> */<br /> static inline int uncached_access(struct file *file, unsigned long addr)<br /> {<br />-#if defined(__i386__)<br />- /*<br />- * On the PPro and successors, the MTRRs are used to set<br />- * memory types for physical addresses outside main memory,<br />- * so blindly setting PCD or PWT on those pages is wrong.<br />- * For Pentiums and earlier, the surround logic should disable<br />- * caching for the high addresses through the KEN pin, but<br />- * we maintain the tradition of paranoia in this code.<br />- */<br />- if (file->f_flags & O_SYNC)<br />- return 1;<br />- return !( test_bit(X86_FEATURE_MTRR, boot_cpu_data.x86_capability) ||<br />- test_bit(X86_FEATURE_K6_MTRR, boot_cpu_data.x86_capability) ||<br />- test_bit(X86_FEATURE_CYRIX_ARR, boot_cpu_data.x86_capability) ||<br />- test_bit(X86_FEATURE_CENTAUR_MCR, boot_cpu_data.x86_capability) )<br />- && addr >= __pa(high_memory);<br />-#elif defined(__x86_64__)<br />+#if defined(__x86_64__)<br /> /* <br /> * This is broken because it can generate memory type aliases,<br /> * which can cause cache corruptions<br />- * But it is only available for root and we have to be bug-to-bug<br />- * compatible with i386.<br />+ * But it is only available for root.<br /> */<br /> if (file->f_flags & O_SYNC)<br /> return 1;<br />- /* same behaviour as i386. PAT always set to cached and MTRRs control the<br />- caching behaviour. <br />- Hopefully a full PAT implementation will fix that soon. */ <br />+ /* Hopefully a full PAT implementation will fix that soon. */ <br /> return 0;<br /> #elif defined(CONFIG_IA64)<br /> /*<br />diff -ru ./linux-2.6.9-orig/drivers/char/nvram.c ./linux-2.6.9/drivers/char/nvram.c<br />--- ./linux-2.6.9-orig/drivers/char/nvram.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/nvram.c 2005-03-31 17:00:41.000000000 +0400<br />@@ -49,7 +49,7 @@<br /> /* select machine configuration */<br /> #if defined(CONFIG_ATARI)<br /> # define MACH ATARI<br />-#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) /* and others?? */<br />+#elif defined(__x86_64__) || defined(__arm__) /* and others?? */<br /> #define MACH PC<br /> # if defined(CONFIG_COBALT)<br /> # include <linux/cobalt-nvram.h><br />diff -ru ./linux-2.6.9-orig/drivers/char/pcmcia/synclink_cs.c ./linux-2.6.9/drivers/char/pcmcia/synclink_cs.c<br />--- ./linux-2.6.9-orig/drivers/char/pcmcia/synclink_cs.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/pcmcia/synclink_cs.c 2005-03-31 16:59:45.000000000 +0400<br />@@ -27,11 +27,7 @@<br /> */<br /> <br /> #define VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))<br />-#if defined(__i386__)<br />-# define BREAKPOINT() asm(" int $3");<br />-#else<br /> # define BREAKPOINT() { }<br />-#endif<br /> <br /> #define MAX_DEVICE_COUNT 4<br /> <br />diff -ru ./linux-2.6.9-orig/drivers/char/random.c ./linux-2.6.9/drivers/char/random.c<br />--- ./linux-2.6.9-orig/drivers/char/random.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/random.c 2005-03-31 16:58:46.000000000 +0400<br />@@ -412,25 +412,10 @@<br /> *<br /> *****************************************************************/<br /> <br />-/*<br />- * Unfortunately, while the GCC optimizer for the i386 understands how<br />- * to optimize a static rotate left of x bits, it doesn't know how to<br />- * deal with a variable rotate of x bits. So we use a bit of asm magic.<br />- */<br />-#if (!defined (__i386__))<br /> static inline __u32 rotate_left(int i, __u32 word)<br /> {<br /> return (word << i) | (word >> (32 - i));<br /> }<br />-#else<br />-static inline __u32 rotate_left(int i, __u32 word)<br />-{<br />- __asm__("roll %%cl,%0"<br />- :"=r" (word)<br />- :"0" (word),"c" (i));<br />- return word;<br />-}<br />-#endif<br /> <br /> /*<br /> * More asm magic....<br />@@ -996,7 +981,7 @@<br /> #if SHA_CODE_SIZE == 0<br /> /*<br /> * Approximately 50% of the speed of the largest version, but<br />- * takes up 1/16 the space. Saves about 6k on an i386 kernel.<br />+ * takes up 1/16 the space.<br /> */<br /> for (i = 0; i < 80; i++) {<br /> if (i < 40) {<br />diff -ru ./linux-2.6.9-orig/drivers/char/rtc.c ./linux-2.6.9/drivers/char/rtc.c<br />--- ./linux-2.6.9-orig/drivers/char/rtc.c 2005-03-31 16:26:46.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/rtc.c 2005-03-31 17:03:02.000000000 +0400<br />@@ -82,10 +82,6 @@<br /> #include <asm/uaccess.h><br /> #include <asm/system.h><br /> <br />-#if defined(__i386__)<br />-#include <asm/hpet.h><br />-#endif<br />-<br /> #ifdef __sparc__<br /> #include <linux/pci.h><br /> #include <asm/ebus.h><br />diff -ru ./linux-2.6.9-orig/drivers/char/synclink.c ./linux-2.6.9/drivers/char/synclink.c<br />--- ./linux-2.6.9-orig/drivers/char/synclink.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/synclink.c 2005-03-31 17:39:37.000000000 +0400<br />@@ -53,11 +53,7 @@<br /> * OF THE POSSIBILITY OF SUCH DAMAGE.<br /> */<br /> <br />-#if defined(__i386__)<br />-# define BREAKPOINT() asm(" int $3");<br />-#else<br /> # define BREAKPOINT() { }<br />-#endif<br /> <br /> #define MAX_ISA_DEVICES 10<br /> #define MAX_PCI_DEVICES 10<br />diff -ru ./linux-2.6.9-orig/drivers/char/synclinkmp.c ./linux-2.6.9/drivers/char/synclinkmp.c<br />--- ./linux-2.6.9-orig/drivers/char/synclinkmp.c 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/synclinkmp.c 2005-03-31 16:59:05.000000000 +0400<br />@@ -26,11 +26,7 @@<br /> */<br /> <br /> #define VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))<br />-#if defined(__i386__)<br />-# define BREAKPOINT() asm(" int $3");<br />-#else<br /> # define BREAKPOINT() { }<br />-#endif<br /> <br /> #define MAX_DEVICES 12<br /> <br />diff -ru ./linux-2.6.9-orig/drivers/char/vt_ioctl.c ./linux-2.6.9/drivers/char/vt_ioctl.c<br />--- ./linux-2.6.9-orig/drivers/char/vt_ioctl.c 2005-03-31 16:26:46.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/vt_ioctl.c 2005-03-31 17:03:59.000000000 +0400<br />@@ -428,24 +428,8 @@<br /> *<br /> * XXX: you should never use these, just call ioperm directly..<br /> */<br />-#ifdef CONFIG_X86<br />- case KDADDIO:<br />- case KDDELIO:<br />- /*<br />- * KDADDIO and KDDELIO may be able to add ports beyond what<br />- * we reject here, but to be safe...<br />- */<br />- if (arg < GPFIRST || arg > GPLAST)<br />- return -EINVAL;<br />- return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0;<br />-<br />- case KDENABIO:<br />- case KDDISABIO:<br />- return sys_ioperm(GPFIRST, GPNUM,<br />- (cmd == KDENABIO)) ? -ENXIO : 0;<br />-#endif<br /> <br />- /* Linux m68k/i386 interface for setting the keyboard delay/repeat rate */<br />+ /* Linux m68k interface for setting the keyboard delay/repeat rate */<br /> <br /> case KDKBDREP:<br /> {<br />diff -ru ./linux-2.6.9-orig/drivers/char/watchdog/Kconfig ./linux-2.6.9/drivers/char/watchdog/Kconfig<br />--- ./linux-2.6.9-orig/drivers/char/watchdog/Kconfig 2005-03-31 16:26:45.000000000 +0400<br />+++ ./linux-2.6.9/drivers/char/watchdog/Kconfig 2005-03-31 16:58:03.000000000 +0400<br />@@ -139,7 +139,7 @@<br /> To compile this driver as a module, choose M here: the<br /> module will be called sa1100_wdt.<br /> <br />-# X86 (i386 + ia64 + x86_64) Architecture<br />+# X86 (ia64 + x86_64) Architecture<br /> <br /> config ACQUIRE_WDT<br /> tristate "Acquire SBC Watchdog Timer"<br />diff -ru ./linux-2.6.9-orig/drivers/ide/legacy/hd.c ./linux-2.6.9/drivers/ide/legacy/hd.c<br />--- ./linux-2.6.9-orig/drivers/ide/legacy/hd.c 2005-03-31 16:26:58.000000000 +0400<br />+++ ./linux-2.6.9/drivers/ide/legacy/hd.c 2005-03-31 17:25:23.000000000 +0400<br />@@ -724,62 +724,6 @@<br /> device_timer.function = hd_times_out;<br /> blk_queue_hardsect_size(hd_queue, 512);<br /> <br />-#ifdef __i386__<br />- if (!NR_HD) {<br />- extern struct drive_info drive_info;<br />- unsigned char *BIOS = (unsigned char *) &drive_info;<br />- unsigned long flags;<br />- int cmos_disks;<br />-<br />- for (drive=0 ; drive<2 ; drive++) {<br />- hd_info[drive].cyl = *(unsigned short *) BIOS;<br />- hd_info[drive].head = *(2+BIOS);<br />- hd_info[drive].wpcom = *(unsigned short *) (5+BIOS);<br />- hd_info[drive].ctl = *(8+BIOS);<br />- hd_info[drive].lzone = *(unsigned short *) (12+BIOS);<br />- hd_info[drive].sect = *(14+BIOS);<br />-#ifdef does_not_work_for_everybody_with_scsi_but_helps_ibm_vp<br />- if (hd_info[drive].cyl && NR_HD == drive)<br />- NR_HD++;<br />-#endif<br />- BIOS += 16;<br />- }<br />-<br />- /*<br />- We query CMOS about hard disks : it could be that <br />- we have a SCSI/ESDI/etc controller that is BIOS<br />- compatible with ST-506, and thus showing up in our<br />- BIOS table, but not register compatible, and therefore<br />- not present in CMOS.<br />-<br />- Furthermore, we will assume that our ST-506 drives<br />- <if any> are the primary drives in the system, and <br />- the ones reflected as drive 1 or 2.<br />-<br />- The first drive is stored in the high nibble of CMOS<br />- byte 0x12, the second in the low nibble. This will be<br />- either a 4 bit drive type or 0xf indicating use byte 0x19 <br />- for an 8 bit type, drive 1, 0x1a for drive 2 in CMOS.<br />-<br />- Needless to say, a non-zero value means we have <br />- an AT controller hard disk for that drive.<br />-<br />- Currently the rtc_lock is a bit academic since this<br />- driver is non-modular, but someday... ? Paul G.<br />- */<br />-<br />- spin_lock_irqsave(&rtc_lock, flags);<br />- cmos_disks = CMOS_READ(0x12);<br />- spin_unlock_irqrestore(&rtc_lock, flags);<br />-<br />- if (cmos_disks & 0xf0) {<br />- if (cmos_disks & 0x0f)<br />- NR_HD = 2;<br />- else<br />- NR_HD = 1;<br />- }<br />- }<br />-#endif /* __i386__ */<br /> #ifdef __arm__<br /> if (!NR_HD) {<br /> /* We don't know anything about the drive. This means<br />diff -ru ./linux-2.6.9-orig/drivers/ide/pci/cmd64x.c ./linux-2.6.9/drivers/ide/pci/cmd64x.c<br />--- ./linux-2.6.9-orig/drivers/ide/pci/cmd64x.c 2005-03-31 16:26:58.000000000 +0400<br />+++ ./linux-2.6.9/drivers/ide/pci/cmd64x.c 2005-03-31 17:25:39.000000000 +0400<br />@@ -606,13 +606,6 @@<br /> pci_read_config_dword(dev, PCI_CLASS_REVISION, &class_rev);<br /> class_rev &= 0xff;<br /> <br />-#ifdef __i386__<br />- if (dev->resource[PCI_ROM_RESOURCE].start) {<br />- pci_write_config_byte(dev, PCI_ROM_ADDRESS, dev->resource[PCI_ROM_RESOURCE].start | PCI_ROM_ADDRESS_ENABLE);<br />- printk(KERN_INFO "%s: ROM enabled at 0x%08lx\n", name, dev->resource[PCI_ROM_RESOURCE].start);<br />- }<br />-#endif<br />-<br /> switch(dev->device) {<br /> case PCI_DEVICE_ID_CMD_643:<br /> break;<br />@@ -662,11 +655,7 @@<br /> (void) pci_write_config_byte(dev, DRWTIM0, 0x3f);<br /> (void) pci_write_config_byte(dev, ARTTIM1, 0x40);<br /> (void) pci_write_config_byte(dev, DRWTIM1, 0x3f);<br />-#ifdef __i386__<br />- (void) pci_write_config_byte(dev, ARTTIM23, 0x1c);<br />-#else<br /> (void) pci_write_config_byte(dev, ARTTIM23, 0x5c);<br />-#endif<br /> (void) pci_write_config_byte(dev, DRWTIM23, 0x3f);<br /> (void) pci_write_config_byte(dev, DRWTIM3, 0x3f);<br /> #ifdef CONFIG_PPC<br />diff -ru ./linux-2.6.9-orig/drivers/input/gameport/gameport.c ./linux-2.6.9/drivers/input/gameport/gameport.c<br />--- ./linux-2.6.9-orig/drivers/input/gameport/gameport.c 2005-03-31 16:26:57.000000000 +0400<br />+++ ./linux-2.6.9/drivers/input/gameport/gameport.c 2005-03-31 17:24:29.000000000 +0400<br />@@ -35,60 +35,12 @@<br /> static LIST_HEAD(gameport_list);<br /> static LIST_HEAD(gameport_dev_list);<br /> <br />-#ifdef __i386__<br />-<br />-#define DELTA(x,y) ((y)-(x)+((y)<(x)?1193182/HZ:0))<br />-#define GET_TIME(x) do { x = get_time_pit(); } while (0)<br />-<br />-static unsigned int get_time_pit(void)<br />-{<br />- extern spinlock_t i8253_lock;<br />- unsigned long flags;<br />- unsigned int count;<br />-<br />- spin_lock_irqsave(&i8253_lock, flags);<br />- outb_p(0x00, 0x43);<br />- count = inb_p(0x40);<br />- count |= inb_p(0x40) << 8;<br />- spin_unlock_irqrestore(&i8253_lock, flags);<br />-<br />- return count;<br />-}<br />-<br />-#endif<br />-<br /> /*<br /> * gameport_measure_speed() measures the gameport i/o speed.<br /> */<br /> <br /> static int gameport_measure_speed(struct gameport *gameport)<br /> {<br />-#ifdef __i386__<br />-<br />- unsigned int i, t, t1, t2, t3, tx;<br />- unsigned long flags;<br />-<br />- if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW))<br />- return 0;<br />-<br />- tx = 1 << 30;<br />-<br />- for(i = 0; i < 50; i++) {<br />- local_irq_save(flags);<br />- GET_TIME(t1);<br />- for(t = 0; t < 50; t++) gameport_read(gameport);<br />- GET_TIME(t2);<br />- GET_TIME(t3);<br />- local_irq_restore(flags);<br />- udelay(i * 10);<br />- if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t;<br />- }<br />-<br />- gameport_close(gameport);<br />- return 59659 / (tx < 1 ? 1 : tx);<br />-<br />-#else<br />-<br /> unsigned int j, t = 0;<br /> <br /> j = jiffies; while (j == jiffies);<br />@@ -96,8 +48,6 @@<br /> <br /> gameport_close(gameport);<br /> return t * HZ / 1000;<br />-<br />-#endif<br /> }<br /> <br /> static void gameport_find_dev(struct gameport *gameport)<br />diff -ru ./linux-2.6.9-orig/drivers/input/joystick/analog.c ./linux-2.6.9/drivers/input/joystick/analog.c<br />--- ./linux-2.6.9-orig/drivers/input/joystick/analog.c 2005-03-31 16:26:57.000000000 +0400<br />+++ ./linux-2.6.9/drivers/input/joystick/analog.c 2005-03-31 17:24:09.000000000 +0400<br />@@ -140,25 +140,7 @@<br /> * Time macros.<br /> */<br /> <br />-#ifdef __i386__<br />-#define GET_TIME(x) do { if (cpu_has_tsc) rdtscl(x); else x = get_time_pit(); } while (0)<br />-#define DELTA(x,y) (cpu_has_tsc ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? CLOCK_TICK_RATE / HZ : 0)))<br />-#define TIME_NAME (cpu_has_tsc?"TSC":"PIT")<br />-static unsigned int get_time_pit(void)<br />-{<br />- extern spinlock_t i8253_lock;<br />- unsigned long flags;<br />- unsigned int count;<br />-<br />- spin_lock_irqsave(&i8253_lock, flags);<br />- outb_p(0x00, 0x43);<br />- count = inb_p(0x40);<br />- count |= inb_p(0x40) << 8;<br />- spin_unlock_irqrestore(&i8253_lock, flags);<br />-<br />- return count;<br />-}<br />-#elif defined(__x86_64__)<br />+#if defined(__x86_64__)<br /> #define GET_TIME(x) rdtscl(x)<br /> #define DELTA(x,y) ((y)-(x))<br /> #define TIME_NAME "TSC"<br />diff -ru ./linux-2.6.9-orig/drivers/input/keyboard/atkbd.c ./linux-2.6.9/drivers/input/keyboard/atkbd.c<br />--- ./linux-2.6.9-orig/drivers/input/keyboard/atkbd.c 2005-03-31 16:26:57.000000000 +0400<br />+++ ./linux-2.6.9/drivers/input/keyboard/atkbd.c 2005-03-31 17:23:19.000000000 +0400<br />@@ -38,7 +38,7 @@<br /> module_param_named(set, atkbd_set, int, 0);<br /> MODULE_PARM_DESC(set, "Select keyboard code set (2 = default, 3 = PS/2 native)");<br /> <br />-#if defined(__i386__) || defined(__x86_64__) || defined(__hppa__)<br />+#if defined(__x86_64__) || defined(__hppa__)<br /> static int atkbd_reset;<br /> #else<br /> static int atkbd_reset = 1;<br />@@ -258,7 +258,7 @@<br /> printk(KERN_DEBUG "atkbd.c: Received %02x flags %02x\n", data, flags);<br /> #endif<br /> <br />-#if !defined(__i386__) && !defined (__x86_64__)<br />+#if !defined (__x86_64__)<br /> if ((flags & (SERIO_FRAME | SERIO_PARITY)) && (~flags & SERIO_TIMEOUT) && !atkbd->resend && atkbd->write) {<br /> printk(KERN_WARNING "atkbd.c: frame/parity error: %02x\n", flags);<br /> serio_write(serio, ATKBD_CMD_RESEND);<br />diff -ru ./linux-2.6.9-orig/drivers/input/serio/i8042-x86ia64io.h ./linux-2.6.9/drivers/input/serio/i8042-x86ia64io.h<br />--- ./linux-2.6.9-orig/drivers/input/serio/i8042-x86ia64io.h 2005-03-31 16:26:57.000000000 +0400<br />+++ ./linux-2.6.9/drivers/input/serio/i8042-x86ia64io.h 2005-03-31 17:23:45.000000000 +0400<br />@@ -63,31 +63,6 @@<br /> outb(val, I8042_COMMAND_REG);<br /> }<br /> <br />-#if defined(__i386__)<br />-<br />-#include <linux/dmi.h><br />-<br />-static struct dmi_system_id __initdata i8042_dmi_table[] = {<br />- {<br />- .ident = "Compaq Proliant 8500",<br />- .matches = {<br />- DMI_MATCH(DMI_SYS_VENDOR, "Compaq"),<br />- DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"),<br />- DMI_MATCH(DMI_PRODUCT_VERSION, "8500"),<br />- },<br />- },<br />- {<br />- .ident = "Compaq Proliant DL760",<br />- .matches = {<br />- DMI_MATCH(DMI_SYS_VENDOR, "Compaq"),<br />- DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"),<br />- DMI_MATCH(DMI_PRODUCT_VERSION, "DL760"),<br />- },<br />- },<br />- { }<br />-};<br />-#endif<br />-<br /> #ifdef CONFIG_ACPI<br /> #include <linux/acpi.h><br /> #include <acpi/acpi_bus.h><br />@@ -290,11 +265,6 @@<br /> i8042_reset = 1;<br /> #endif<br /> <br />-#if defined(__i386__)<br />- if (dmi_check_system(i8042_dmi_table))<br />- i8042_noloop = 1;<br />-#endif<br />-<br /> return 0;<br /> }<br /> <br />diff -ru ./linux-2.6.9-orig/drivers/isdn/i4l/isdn_audio.c ./linux-2.6.9/drivers/isdn/i4l/isdn_audio.c<br />--- ./linux-2.6.9-orig/drivers/isdn/i4l/isdn_audio.c 2005-03-31 16:26:52.000000000 +0400<br />+++ ./linux-2.6.9/drivers/isdn/i4l/isdn_audio.c 2005-03-31 17:17:37.000000000 +0400<br />@@ -195,21 +195,8 @@<br /> static inline void<br /> isdn_audio_tlookup(const u_char *table, u_char *buff, unsigned long n)<br /> {<br />-#ifdef __i386__<br />- unsigned long d0, d1, d2, d3;<br />- __asm__ __volatile__(<br />- "cld\n"<br />- "1:\tlodsb\n\t"<br />- "xlatb\n\t"<br />- "stosb\n\t"<br />- "loop 1b\n\t"<br />- : "=&b"(d0), "=&c"(d1), "=&D"(d2), "=&S"(d3)<br />- : "0"((long) table), "1"(n), "2"((long) buff), "3"((long) buff)<br />- : "memory", "ax");<br />-#else<br /> while (n--)<br /> *buff = table[*(unsigned char *)buff], buff++;<br />-#endif<br /> }<br /> <br /> void<br />diff -ru ./linux-2.6.9-orig/drivers/macintosh/apm_emu.c ./linux-2.6.9/drivers/macintosh/apm_emu.c<br />--- ./linux-2.6.9-orig/drivers/macintosh/apm_emu.c 2005-03-31 16:26:59.000000000 +0400<br />+++ ./linux-2.6.9/drivers/macintosh/apm_emu.c 2005-03-31 17:28:33.000000000 +0400<br />@@ -2,8 +2,7 @@<br /> * <br /> * Copyright 2001 Benjamin Herrenschmidt (benh@kernel.crashing.org)<br /> *<br />- * Lots of code inherited from apm.c, see appropriate notice in<br />- * arch/i386/kernel/apm.c<br />+ * Lots of code inherited from apm.c<br /> *<br /> * This program is free software; you can redistribute it and/or modify it<br /> * under the terms of the GNU General Public License as published by the<br />diff -ru ./linux-2.6.9-orig/drivers/md/raid6algos.c ./linux-2.6.9/drivers/md/raid6algos.c<br />--- ./linux-2.6.9-orig/drivers/md/raid6algos.c 2005-03-31 16:26:59.000000000 +0400<br />+++ ./linux-2.6.9/drivers/md/raid6algos.c 2005-03-31 17:28:01.000000000 +0400<br />@@ -51,14 +51,6 @@<br /> &raid6_intx16,<br /> &raid6_intx32,<br /> #endif<br />-#if defined(__i386__)<br />- &raid6_mmxx1,<br />- &raid6_mmxx2,<br />- &raid6_sse1x1,<br />- &raid6_sse1x2,<br />- &raid6_sse2x1,<br />- &raid6_sse2x2,<br />-#endif<br /> #if defined(__x86_64__)<br /> &raid6_sse2x1,<br /> &raid6_sse2x2,<br />diff -ru ./linux-2.6.9-orig/drivers/media/video/zoran_driver.c ./linux-2.6.9/drivers/media/video/zoran_driver.c<br />--- ./linux-2.6.9-orig/drivers/media/video/zoran_driver.c 2005-03-31 16:26:43.000000000 +0400<br />+++ ./linux-2.6.9/drivers/media/video/zoran_driver.c 2005-03-31 16:54:09.000000000 +0400<br />@@ -4556,7 +4556,6 @@<br /> pos =<br /> le32_to_cpu((unsigned long) fh->jpg_buffers.<br /> buffer[i].frag_tab[2 * j]);<br />- /* should just be pos on i386 */<br /> page = virt_to_phys(bus_to_virt(pos))<br /> >> PAGE_SHIFT;<br /> if (remap_pfn_range(vma, start, page,<br />diff -ru ./linux-2.6.9-orig/drivers/mtd/devices/docprobe.c ./linux-2.6.9/drivers/mtd/devices/docprobe.c<br />--- ./linux-2.6.9-orig/drivers/mtd/devices/docprobe.c 2005-03-31 16:26:55.000000000 +0400<br />+++ ./linux-2.6.9/drivers/mtd/devices/docprobe.c 2005-03-31 17:17:50.000000000 +0400<br />@@ -66,7 +66,7 @@<br /> MODULE_PARM_DESC(doc_config_location, "Physical memory address at which to probe for DiskOnChip");<br /> <br /> static unsigned long __initdata doc_locations[] = {<br />-#if defined (__alpha__) || defined(__i386__) || defined(__x86_64__)<br />+#if defined (__alpha__) || defined(__x86_64__)<br /> #ifdef CONFIG_MTD_DOCPROBE_HIGH<br /> 0xfffc8000, 0xfffca000, 0xfffcc000, 0xfffce000, <br /> 0xfffd0000, 0xfffd2000, 0xfffd4000, 0xfffd6000,<br />diff -ru ./linux-2.6.9-orig/drivers/mtd/nand/diskonchip.c ./linux-2.6.9/drivers/mtd/nand/diskonchip.c<br />--- ./linux-2.6.9-orig/drivers/mtd/nand/diskonchip.c 2005-03-31 16:26:55.000000000 +0400<br />+++ ./linux-2.6.9/drivers/mtd/nand/diskonchip.c 2005-03-31 17:18:02.000000000 +0400<br />@@ -40,7 +40,7 @@<br /> #endif<br /> <br /> static unsigned long __initdata doc_locations[] = {<br />-#if defined (__alpha__) || defined(__i386__) || defined(__x86_64__)<br />+#if defined (__alpha__) || defined(__x86_64__)<br /> #ifdef CONFIG_MTD_DISKONCHIP_PROBE_HIGH<br /> 0xfffc8000, 0xfffca000, 0xfffcc000, 0xfffce000, <br /> 0xfffd0000, 0xfffd2000, 0xfffd4000, 0xfffd6000,<br />diff -ru ./linux-2.6.9-orig/drivers/net/fealnx.c ./linux-2.6.9/drivers/net/fealnx.c<br />--- ./linux-2.6.9-orig/drivers/net/fealnx.c 2005-03-31 16:26:40.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/fealnx.c 2005-03-31 16:51:27.000000000 +0400<br />@@ -900,23 +900,6 @@<br /> // np->bcrvalue=0x38; /* little-endian, 256 burst length */<br /> np->bcrvalue = 0x10; /* little-endian, 8 burst length */<br /> np->crvalue = 0xe00; /* rx 128 burst length */<br />-#elif defined(__i386__)<br />-#if defined(MODULE)<br />-// 89/9/1 modify, <br />-// np->bcrvalue=0x38; /* little-endian, 256 burst length */<br />- np->bcrvalue = 0x10; /* little-endian, 8 burst length */<br />- np->crvalue = 0xe00; /* rx 128 burst length */<br />-#else<br />- /* When not a module we can work around broken '486 PCI boards. */<br />-#define x86 boot_cpu_data.x86<br />-// 89/9/1 modify, <br />-// np->bcrvalue=(x86 <= 4 ? 0x10 : 0x38);<br />- np->bcrvalue = 0x10;<br />- np->crvalue = (x86 <= 4 ? 0xa00 : 0xe00);<br />- if (x86 <= 4)<br />- printk(KERN_INFO "%s: This is a 386/486 PCI system, setting burst "<br />- "length to %x.\n", dev->name, (x86 <= 4 ? 0x10 : 0x38));<br />-#endif<br /> #else<br /> // 89/9/1 modify,<br /> // np->bcrvalue=0x38;<br />diff -ru ./linux-2.6.9-orig/drivers/net/hamachi.c ./linux-2.6.9/drivers/net/hamachi.c<br />--- ./linux-2.6.9-orig/drivers/net/hamachi.c 2005-03-31 16:26:41.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/hamachi.c 2005-03-31 16:51:49.000000000 +0400<br />@@ -1757,35 +1757,6 @@<br /> writel(2, ioaddr + RxCmd);<br /> writew(2, ioaddr + TxCmd);<br /> <br />-#ifdef __i386__<br />- if (hamachi_debug > 2) {<br />- printk("\n"KERN_DEBUG" Tx ring at %8.8x:\n",<br />- (int)hmp->tx_ring_dma);<br />- for (i = 0; i < TX_RING_SIZE; i++)<br />- printk(" %c #%d desc. %8.8x %8.8x.\n",<br />- readl(ioaddr + TxCurPtr) == (long)&hmp->tx_ring[i] ? '>' : ' ',<br />- i, hmp->tx_ring[i].status_n_length, hmp->tx_ring[i].addr);<br />- printk("\n"KERN_DEBUG " Rx ring %8.8x:\n",<br />- (int)hmp->rx_ring_dma);<br />- for (i = 0; i < RX_RING_SIZE; i++) {<br />- printk(KERN_DEBUG " %c #%d desc. %4.4x %8.8x\n",<br />- readl(ioaddr + RxCurPtr) == (long)&hmp->rx_ring[i] ? '>' : ' ',<br />- i, hmp->rx_ring[i].status_n_length, hmp->rx_ring[i].addr);<br />- if (hamachi_debug > 6) {<br />- if (*(u8*)hmp->rx_skbuff[i]->tail != 0x69) {<br />- u16 *addr = (u16 *)<br />- hmp->rx_skbuff[i]->tail;<br />- int j;<br />-<br />- for (j = 0; j < 0x50; j++)<br />- printk(" %4.4x", addr[j]);<br />- printk("\n");<br />- }<br />- }<br />- }<br />- }<br />-#endif /* __i386__ debugging only */<br />-<br /> free_irq(dev->irq, dev);<br /> <br /> del_timer_sync(&hmp->timer);<br />diff -ru ./linux-2.6.9-orig/drivers/net/hamradio/baycom_epp.c ./linux-2.6.9/drivers/net/hamradio/baycom_epp.c<br />--- ./linux-2.6.9-orig/drivers/net/hamradio/baycom_epp.c 2005-03-31 16:26:39.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/hamradio/baycom_epp.c 2005-03-31 16:50:27.000000000 +0400<br />@@ -727,16 +727,7 @@<br /> <br /> /* --------------------------------------------------------------------- */<br /> <br />-#ifdef __i386__<br />-#include <asm/msr.h><br />-#define GETTICK(x) \<br />-({ \<br />- if (cpu_has_tsc) \<br />- rdtscl(x); \<br />-})<br />-#else /* __i386__ */<br /> #define GETTICK(x)<br />-#endif /* __i386__ */<br /> <br /> static void epp_bh(struct net_device *dev)<br /> {<br />diff -ru ./linux-2.6.9-orig/drivers/net/starfire.c ./linux-2.6.9/drivers/net/starfire.c<br />--- ./linux-2.6.9-orig/drivers/net/starfire.c 2005-03-31 16:26:41.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/starfire.c 2005-03-31 16:52:02.000000000 +0400<br />@@ -271,7 +271,7 @@<br /> * This SUCKS.<br /> * We need a much better method to determine if dma_addr_t is 64-bit.<br /> */<br />-#if (defined(__i386__) && defined(CONFIG_HIGHMEM) && (LINUX_VERSION_CODE > 0x20500 || defined(CONFIG_HIGHMEM64G))) || defined(__x86_64__) || defined (__ia64__) || defined(__mips64__) || (defined(__mips__) && defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR))<br />+#if (defined(CONFIG_HIGHMEM) && (LINUX_VERSION_CODE > 0x20500 || defined(CONFIG_HIGHMEM64G))) || defined(__x86_64__) || defined (__ia64__) || defined(__mips64__) || (defined(__mips__) && defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR))<br /> /* 64-bit dma_addr_t */<br /> #define ADDR_64BITS /* This chip uses 64 bit addresses. */<br /> #define cpu_to_dma(x) cpu_to_le64(x)<br />diff -ru ./linux-2.6.9-orig/drivers/net/sundance.c ./linux-2.6.9/drivers/net/sundance.c<br />--- ./linux-2.6.9-orig/drivers/net/sundance.c 2005-03-31 16:26:40.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/sundance.c 2005-03-31 16:51:03.000000000 +0400<br />@@ -1689,24 +1689,6 @@<br /> tasklet_kill(&np->rx_tasklet);<br /> tasklet_kill(&np->tx_tasklet);<br /> <br />-#ifdef __i386__<br />- if (netif_msg_hw(np)) {<br />- printk("\n"KERN_DEBUG" Tx ring at %8.8x:\n",<br />- (int)(np->tx_ring_dma));<br />- for (i = 0; i < TX_RING_SIZE; i++)<br />- printk(" #%d desc. %4.4x %8.8x %8.8x.\n",<br />- i, np->tx_ring[i].status, np->tx_ring[i].frag[0].addr,<br />- np->tx_ring[i].frag[0].length);<br />- printk("\n"KERN_DEBUG " Rx ring %8.8x:\n",<br />- (int)(np->rx_ring_dma));<br />- for (i = 0; i < /*RX_RING_SIZE*/4 ; i++) {<br />- printk(KERN_DEBUG " #%d desc. %4.4x %4.4x %8.8x\n",<br />- i, np->rx_ring[i].status, np->rx_ring[i].frag[0].addr,<br />- np->rx_ring[i].frag[0].length);<br />- }<br />- }<br />-#endif /* __i386__ debugging only */<br />-<br /> free_irq(dev->irq, dev);<br /> <br /> del_timer_sync(&np->timer);<br />diff -ru ./linux-2.6.9-orig/drivers/net/tulip/tulip_core.c ./linux-2.6.9/drivers/net/tulip/tulip_core.c<br />--- ./linux-2.6.9-orig/drivers/net/tulip/tulip_core.c 2005-03-31 16:26:36.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/tulip/tulip_core.c 2005-03-31 16:45:23.000000000 +0400<br />@@ -90,7 +90,7 @@<br /> <br /> #if defined(__alpha__) || defined(__ia64__)<br /> static int csr0 = 0x01A00000 | 0xE000;<br />-#elif defined(__i386__) || defined(__powerpc__) || defined(__x86_64__)<br />+#elif defined(__powerpc__) || defined(__x86_64__)<br /> static int csr0 = 0x01A00000 | 0x8000;<br /> #elif defined(__sparc__) || defined(__hppa__)<br /> /* The UltraSparc PCI controllers will disconnect at every 64-byte<br />@@ -1570,10 +1570,6 @@<br /> dev->dev_addr, 6);<br /> }<br /> #endif<br />-#if defined(__i386__) /* Patch up x86 BIOS bug. */<br />- if (last_irq)<br />- irq = last_irq;<br />-#endif<br /> }<br /> <br /> for (i = 0; i < 6; i++)<br />diff -ru ./linux-2.6.9-orig/drivers/net/tulip/tulip.h ./linux-2.6.9/drivers/net/tulip/tulip.h<br />--- ./linux-2.6.9-orig/drivers/net/tulip/tulip.h 2005-03-31 16:26:36.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/tulip/tulip.h 2005-03-31 16:45:38.000000000 +0400<br />@@ -294,11 +294,7 @@<br /> <br /> #define RUN_AT(x) (jiffies + (x))<br /> <br />-#if defined(__i386__) /* AKA get_unaligned() */<br />-#define get_u16(ptr) (*(u16 *)(ptr))<br />-#else<br /> #define get_u16(ptr) (((u8*)(ptr))[0] + (((u8*)(ptr))[1]<<8))<br />-#endif<br /> <br /> struct medialeaf {<br /> u8 type;<br />diff -ru ./linux-2.6.9-orig/drivers/net/tulip/winbond-840.c ./linux-2.6.9/drivers/net/tulip/winbond-840.c<br />--- ./linux-2.6.9-orig/drivers/net/tulip/winbond-840.c 2005-03-31 16:26:36.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/tulip/winbond-840.c 2005-03-31 16:45:04.000000000 +0400<br />@@ -926,16 +926,7 @@<br /> 8000 16 longwords 0200 2 longwords 2000 32 longwords<br /> C000 32 longwords 0400 4 longwords */<br /> <br />-#if defined (__i386__) && !defined(MODULE)<br />- /* When not a module we can work around broken '486 PCI boards. */<br />- if (boot_cpu_data.x86 <= 4) {<br />- i |= 0x4800;<br />- printk(KERN_INFO "%s: This is a 386/486 PCI system, setting cache "<br />- "alignment to 8 longwords.\n", dev->name);<br />- } else {<br />- i |= 0xE000;<br />- }<br />-#elif defined(__powerpc__) || defined(__i386__) || defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)<br />+#if defined(__powerpc__) || defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)<br /> i |= 0xE000;<br /> #elif defined(__sparc__)<br /> i |= 0x4800;<br />@@ -1552,26 +1543,6 @@<br /> if (ioread32(ioaddr + NetworkConfig) != 0xffffffff)<br /> np->stats.rx_missed_errors += ioread32(ioaddr + RxMissed) & 0xffff;<br /> <br />-#ifdef __i386__<br />- if (debug > 2) {<br />- int i;<br />-<br />- printk(KERN_DEBUG" Tx ring at %8.8x:\n",<br />- (int)np->tx_ring);<br />- for (i = 0; i < TX_RING_SIZE; i++)<br />- printk(KERN_DEBUG " #%d desc. %4.4x %4.4x %8.8x.\n",<br />- i, np->tx_ring[i].length,<br />- np->tx_ring[i].status, np->tx_ring[i].buffer1);<br />- printk("\n"KERN_DEBUG " Rx ring %8.8x:\n",<br />- (int)np->rx_ring);<br />- for (i = 0; i < RX_RING_SIZE; i++) {<br />- printk(KERN_DEBUG " #%d desc. %4.4x %4.4x %8.8x\n",<br />- i, np->rx_ring[i].length,<br />- np->rx_ring[i].status, np->rx_ring[i].buffer1);<br />- }<br />- }<br />-#endif /* __i386__ debugging only */<br />-<br /> del_timer_sync(&np->timer);<br /> <br /> free_rxtx_rings(np);<br />diff -ru ./linux-2.6.9-orig/drivers/net/tulip/xircom_tulip_cb.c ./linux-2.6.9/drivers/net/tulip/xircom_tulip_cb.c<br />--- ./linux-2.6.9-orig/drivers/net/tulip/xircom_tulip_cb.c 2005-03-31 16:26:36.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/tulip/xircom_tulip_cb.c 2005-03-31 16:43:49.000000000 +0400<br />@@ -82,9 +82,6 @@<br /> static int csr0 = 0x01B00000 | 0x8000;<br /> #elif defined(__sparc__)<br /> static int csr0 = 0x01B00080 | 0x8000;<br />-#elif defined(__i386__)<br />-static int csr0 = 0x01A00000 | 0x8000;<br />-#else<br /> #warning Processor architecture undefined!<br /> static int csr0 = 0x00A00000 | 0x4800;<br /> #endif<br />diff -ru ./linux-2.6.9-orig/drivers/net/wan/sbni.c ./linux-2.6.9/drivers/net/wan/sbni.c<br />--- ./linux-2.6.9-orig/drivers/net/wan/sbni.c 2005-03-31 16:26:38.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/wan/sbni.c 2005-03-31 16:49:42.000000000 +0400<br />@@ -148,10 +148,6 @@<br /> static int emancipate( struct net_device * );<br /> #endif<br /> <br />-#ifdef __i386__<br />-#define ASM_CRC 1<br />-#endif<br />-<br /> static const char version[] =<br /> "Granch SBNI12 driver ver 5.0.1 Jun 22 2001 Denis I.Timofeev.\n";<br /> <br />diff -ru ./linux-2.6.9-orig/drivers/net/wireless/wl3501_cs.c ./linux-2.6.9/drivers/net/wireless/wl3501_cs.c<br />--- ./linux-2.6.9-orig/drivers/net/wireless/wl3501_cs.c 2005-03-31 16:26:37.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/wireless/wl3501_cs.c 2005-03-31 16:45:54.000000000 +0400<br />@@ -62,9 +62,7 @@<br /> <br /> #include "wl3501.h"<br /> <br />-#ifndef __i386__<br /> #define slow_down_io()<br />-#endif<br /> <br /> /* For rough constant delay */<br /> #define WL3501_NOPLOOP(n) { int x = 0; while (x++ < n) slow_down_io(); }<br />diff -ru ./linux-2.6.9-orig/drivers/net/yellowfin.c ./linux-2.6.9/drivers/net/yellowfin.c<br />--- ./linux-2.6.9-orig/drivers/net/yellowfin.c 2005-03-31 16:26:40.000000000 +0400<br />+++ ./linux-2.6.9/drivers/net/yellowfin.c 2005-03-31 16:50:49.000000000 +0400<br />@@ -1267,41 +1267,6 @@<br /> <br /> del_timer(&yp->timer);<br /> <br />-#if defined(__i386__)<br />- if (yellowfin_debug > 2) {<br />- printk("\n"KERN_DEBUG" Tx ring at %8.8llx:\n",<br />- (unsigned long long)yp->tx_ring_dma);<br />- for (i = 0; i < TX_RING_SIZE*2; i++)<br />- printk(" %c #%d desc. %8.8x %8.8x %8.8x %8.8x.\n",<br />- ioread32(ioaddr + TxPtr) == (long)&yp->tx_ring[i] ? '>' : ' ',<br />- i, yp->tx_ring[i].dbdma_cmd, yp->tx_ring[i].addr,<br />- yp->tx_ring[i].branch_addr, yp->tx_ring[i].result_status);<br />- printk(KERN_DEBUG " Tx status %p:\n", yp->tx_status);<br />- for (i = 0; i < TX_RING_SIZE; i++)<br />- printk(" #%d status %4.4x %4.4x %4.4x %4.4x.\n",<br />- i, yp->tx_status[i].tx_cnt, yp->tx_status[i].tx_errs,<br />- yp->tx_status[i].total_tx_cnt, yp->tx_status[i].paused);<br />-<br />- printk("\n"KERN_DEBUG " Rx ring %8.8llx:\n",<br />- (unsigned long long)yp->rx_ring_dma);<br />- for (i = 0; i < RX_RING_SIZE; i++) {<br />- printk(KERN_DEBUG " %c #%d desc. %8.8x %8.8x %8.8x\n",<br />- ioread32(ioaddr + RxPtr) == (long)&yp->rx_ring[i] ? '>' : ' ',<br />- i, yp->rx_ring[i].dbdma_cmd, yp->rx_ring[i].addr,<br />- yp->rx_ring[i].result_status);<br />- if (yellowfin_debug > 6) {<br />- if (get_unaligned((u8*)yp->rx_ring[i].addr) != 0x69) {<br />- int j;<br />- for (j = 0; j < 0x50; j++)<br />- printk(" %4.4x",<br />- get_unaligned(((u16*)yp->rx_ring[i].addr) + j));<br />- printk("\n");<br />- }<br />- }<br />- }<br />- }<br />-#endif /* __i386__ debugging only */<br />-<br /> free_irq(dev->irq, dev);<br /> <br /> /* Free all the skbuffs in the Rx queue. */<br />diff -ru ./linux-2.6.9-orig/drivers/parisc/iosapic.c ./linux-2.6.9/drivers/parisc/iosapic.c<br />--- ./linux-2.6.9-orig/drivers/parisc/iosapic.c 2005-03-31 16:26:59.000000000 +0400<br />+++ ./linux-2.6.9/drivers/parisc/iosapic.c 2005-03-31 17:28:15.000000000 +0400<br />@@ -713,7 +713,7 @@<br /> * PCI only supports level triggered in order to share IRQ lines.<br /> * ergo I/O SAPIC must always issue EOI on parisc.<br /> *<br />- * i386/ia64 support ISA devices and have to deal with<br />+ * ia64 support ISA devices and have to deal with<br /> * edge-triggered interrupts too.<br /> */<br /> static void iosapic_end_irq(unsigned int irq)<br />diff -ru ./linux-2.6.9-orig/drivers/pci/hotplug/pciehp_pci.c ./linux-2.6.9/drivers/pci/hotplug/pciehp_pci.c<br />--- ./linux-2.6.9-orig/drivers/pci/hotplug/pciehp_pci.c 2005-03-31 16:26:42.000000000 +0400<br />+++ ./linux-2.6.9/drivers/pci/hotplug/pciehp_pci.c 2005-03-31 16:53:25.000000000 +0400<br />@@ -37,10 +37,6 @@<br /> #include <linux/pci.h><br /> #include "../pci.h"<br /> #include "pciehp.h"<br />-#ifndef CONFIG_IA64<br />-#include "../../../arch/i386/pci/pci.h" /* horrible hack showing how processor dependant we are... */<br />-#endif<br />-<br /> <br /> int pciehp_configure_device (struct controller* ctrl, struct pci_func* func) <br /> {<br />diff -ru ./linux-2.6.9-orig/drivers/pci/hotplug/shpchp_pci.c ./linux-2.6.9/drivers/pci/hotplug/shpchp_pci.c<br />--- ./linux-2.6.9-orig/drivers/pci/hotplug/shpchp_pci.c 2005-03-31 16:26:41.000000000 +0400<br />+++ ./linux-2.6.9/drivers/pci/hotplug/shpchp_pci.c 2005-03-31 16:53:09.000000000 +0400<br />@@ -37,9 +37,6 @@<br /> #include <linux/pci.h><br /> #include "../pci.h"<br /> #include "shpchp.h"<br />-#ifndef CONFIG_IA64<br />-#include "../../../arch/i386/pci/pci.h" /* horrible hack showing how processor dependant we are... */<br />-#endif<br /> <br /> int shpchp_configure_device (struct controller* ctrl, struct pci_func* func) <br /> {<br />diff -ru ./linux-2.6.9-orig/drivers/pnp/manager.c ./linux-2.6.9/drivers/pnp/manager.c<br />--- ./linux-2.6.9-orig/drivers/pnp/manager.c 2005-03-31 16:26:58.000000000 +0400<br />+++ ./linux-2.6.9/drivers/pnp/manager.c 2005-03-31 17:26:09.000000000 +0400<br />@@ -124,7 +124,7 @@<br /> unsigned long *start, *end, *flags;<br /> int i;<br /> <br />- /* IRQ priority: this table is good for i386 */<br />+ /* IRQ priority */<br /> static unsigned short xtab[16] = {<br /> 5, 10, 11, 12, 9, 14, 15, 7, 3, 4, 13, 0, 1, 6, 8, 2<br /> };<br />@@ -176,7 +176,7 @@<br /> unsigned long *start, *end, *flags;<br /> int i;<br /> <br />- /* DMA priority: this table is good for i386 */<br />+ /* DMA priority */<br /> static unsigned short xtab[8] = {<br /> 1, 3, 5, 6, 7, 0, 2, 4<br /> };<br />diff -ru ./linux-2.6.9-orig/drivers/pnp/system.c ./linux-2.6.9/drivers/pnp/system.c<br />--- ./linux-2.6.9-orig/drivers/pnp/system.c 2005-03-31 16:26:58.000000000 +0400<br />+++ ./linux-2.6.9/drivers/pnp/system.c 2005-03-31 17:26:36.000000000 +0400<br />@@ -62,14 +62,6 @@<br /> /* Do nothing */<br /> continue;<br /> if (pnp_port_start(dev, i) < 0x100)<br />- /*<br />- * Below 0x100 is only standard PC hardware<br />- * (pics, kbd, timer, dma, ...)<br />- * We should not get resource conflicts there,<br />- * and the kernel reserves these anyway<br />- * (see arch/i386/kernel/setup.c).<br />- * So, do nothing<br />- */<br /> continue;<br /> if (pnp_port_end(dev, i) < pnp_port_start(dev, i))<br /> /* invalid endpoint */<br />diff -ru ./linux-2.6.9-orig/drivers/sbus/char/bpp.c ./linux-2.6.9/drivers/sbus/char/bpp.c<br />--- ./linux-2.6.9-orig/drivers/sbus/char/bpp.c 2005-03-31 16:27:00.000000000 +0400<br />+++ ./linux-2.6.9/drivers/sbus/char/bpp.c 2005-03-31 17:29:10.000000000 +0400<br />@@ -25,10 +25,6 @@<br /> #include <asm/uaccess.h><br /> #include <asm/io.h><br /> <br />-#if defined(__i386__)<br />-# include <asm/system.h><br />-#endif<br />-<br /> #if defined(__sparc__)<br /> # include <linux/init.h><br /> # include <linux/delay.h> /* udelay() */<br />@@ -87,61 +83,6 @@<br /> <br /> static struct inst instances[BPP_NO];<br /> <br />-#if defined(__i386__)<br />-<br />-static const unsigned short base_addrs[BPP_NO] = { 0x278, 0x378, 0x3bc };<br />-<br />-/*<br />- * These are for data access.<br />- * Control lines accesses are hidden in set_bits() and get_bits().<br />- * The exception is the probe procedure, which is system-dependent.<br />- */<br />-#define bpp_outb_p(data, base) outb_p((data), (base))<br />-#define bpp_inb(base) inb(base)<br />-#define bpp_inb_p(base) inb_p(base)<br />-<br />-/*<br />- * This method takes the pin values mask and sets the hardware pins to<br />- * the requested value: 1 == high voltage, 0 == low voltage. This<br />- * burries the annoying PC bit inversion and preserves the direction<br />- * flag.<br />- */<br />-static void set_pins(unsigned short pins, unsigned minor)<br />-{<br />- unsigned char bits = instances[minor].direction; /* == 0x20 */<br />-<br />- if (! (pins & BPP_PP_nStrobe)) bits |= 1;<br />- if (! (pins & BPP_PP_nAutoFd)) bits |= 2;<br />- if ( pins & BPP_PP_nInit) bits |= 4;<br />- if (! (pins & BPP_PP_nSelectIn)) bits |= 8;<br />-<br />- instances[minor].pp_state = bits;<br />-<br />- outb_p(bits, base_addrs[minor]+2);<br />-}<br />-<br />-static unsigned short get_pins(unsigned minor)<br />-{<br />- unsigned short bits = 0;<br />-<br />- unsigned value = instances[minor].pp_state;<br />- if (! (value & 0x01)) bits |= BPP_PP_nStrobe;<br />- if (! (value & 0x02)) bits |= BPP_PP_nAutoFd;<br />- if (value & 0x04) bits |= BPP_PP_nInit;<br />- if (! (value & 0x08)) bits |= BPP_PP_nSelectIn;<br />-<br />- value = inb_p(base_addrs[minor]+1);<br />- if (value & 0x08) bits |= BPP_GP_nFault;<br />- if (value & 0x10) bits |= BPP_GP_Select;<br />- if (value & 0x20) bits |= BPP_GP_PError;<br />- if (value & 0x40) bits |= BPP_GP_nAck;<br />- if (! (value & 0x80)) bits |= BPP_GP_Busy;<br />-<br />- return bits;<br />-}<br />-<br />-#endif /* __i386__ */<br />-<br /> #if defined(__sparc__)<br /> <br /> /*<br />@@ -867,77 +808,6 @@<br /> .release = bpp_release,<br /> };<br /> <br />-#if defined(__i386__)<br />-<br />-#define collectLptPorts() {}<br />-<br />-static void probeLptPort(unsigned idx)<br />-{<br />- unsigned int testvalue;<br />- const unsigned short lpAddr = base_addrs[idx];<br />-<br />- instances[idx].present = 0;<br />- instances[idx].enhanced = 0;<br />- instances[idx].direction = 0;<br />- instances[idx].mode = COMPATIBILITY;<br />- instances[idx].wait_queue = 0;<br />- instances[idx].run_length = 0;<br />- instances[idx].run_flag = 0;<br />- init_timer(&instances[idx].timer_list);<br />- instances[idx].timer_list.function = bpp_wake_up;<br />- if (!request_region(lpAddr,3, dev_name)) return;<br />-<br />- /*<br />- * First, make sure the instance exists. Do this by writing to<br />- * the data latch and reading the value back. If the port *is*<br />- * present, test to see if it supports extended-mode<br />- * operation. This will be required for IEEE1284 reverse<br />- * transfers.<br />- */<br />-<br />- outb_p(BPP_PROBE_CODE, lpAddr);<br />- for (testvalue=0; testvalue<BPP_DELAY; testvalue++)<br />- ;<br />- testvalue = inb_p(lpAddr);<br />- if (testvalue == BPP_PROBE_CODE) {<br />- unsigned save;<br />- instances[idx].present = 1;<br />-<br />- save = inb_p(lpAddr+2);<br />- for (testvalue=0; testvalue<BPP_DELAY; testvalue++)<br />- ;<br />- outb_p(save|0x20, lpAddr+2);<br />- for (testvalue=0; testvalue<BPP_DELAY; testvalue++)<br />- ;<br />- outb_p(~BPP_PROBE_CODE, lpAddr);<br />- for (testvalue=0; testvalue<BPP_DELAY; testvalue++)<br />- ;<br />- testvalue = inb_p(lpAddr);<br />- if ((testvalue&0xff) == (0xff&~BPP_PROBE_CODE))<br />- instances[idx].enhanced = 0;<br />- else<br />- instances[idx].enhanced = 1;<br />- outb_p(save, lpAddr+2);<br />- }<br />- else {<br />- release_region(lpAddr,3);<br />- }<br />- /*<br />- * Leave the port in compat idle mode.<br />- */<br />- set_pins(BPP_PP_nAutoFd|BPP_PP_nStrobe|BPP_PP_nInit, idx);<br />-<br />- printk("bpp%d: Port at 0x%03x: Enhanced mode %s\n", idx, base_addrs[idx],<br />- instances[idx].enhanced? "SUPPORTED" : "UNAVAILABLE");<br />-}<br />-<br />-static inline void freeLptPort(int idx)<br />-{<br />- release_region(base_addrs[idx], 3);<br />-}<br />-<br />-#endif<br />-<br /> #if defined(__sparc__)<br /> <br /> static void __iomem *map_bpp(struct sbus_dev *dev, int idx)<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/aic7xxx/aic79xx_osm.c ./linux-2.6.9/drivers/scsi/aic7xxx/aic79xx_osm.c<br />--- ./linux-2.6.9-orig/drivers/scsi/aic7xxx/aic79xx_osm.c 2005-03-31 16:26:50.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/aic7xxx/aic79xx_osm.c 2005-03-31 17:09:14.000000000 +0400<br />@@ -713,17 +713,10 @@<br /> static int ahd_linux_slave_alloc(Scsi_Device *);<br /> static int ahd_linux_slave_configure(Scsi_Device *);<br /> static void ahd_linux_slave_destroy(Scsi_Device *);<br />-#if defined(__i386__)<br />-static int ahd_linux_biosparam(struct scsi_device*,<br />- struct block_device*, sector_t, int[]);<br />-#endif<br /> #else<br /> static int ahd_linux_release(struct Scsi_Host *);<br /> static void ahd_linux_select_queue_depth(struct Scsi_Host *host,<br /> Scsi_Device *scsi_devs);<br />-#if defined(__i386__)<br />-static int ahd_linux_biosparam(Disk *, kdev_t, int[]);<br />-#endif<br /> #endif<br /> static int ahd_linux_bus_reset(Scsi_Cmnd *);<br /> static int ahd_linux_dev_reset(Scsi_Cmnd *);<br />@@ -1125,71 +1118,6 @@<br /> }<br /> #endif<br /> <br />-#if defined(__i386__)<br />-/*<br />- * Return the disk geometry for the given SCSI device.<br />- */<br />-static int<br />-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)<br />-ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,<br />- sector_t capacity, int geom[])<br />-{<br />- uint8_t *bh;<br />-#else<br />-ahd_linux_biosparam(Disk *disk, kdev_t dev, int geom[])<br />-{<br />- struct scsi_device *sdev = disk->device;<br />- u_long capacity = disk->capacity;<br />- struct buffer_head *bh;<br />-#endif<br />- int heads;<br />- int sectors;<br />- int cylinders;<br />- int ret;<br />- int extended;<br />- struct ahd_softc *ahd;<br />-<br />- ahd = *((struct ahd_softc **)sdev->host->hostdata);<br />-<br />-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)<br />- bh = scsi_bios_ptable(bdev);<br />-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,17)<br />- bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, block_size(dev));<br />-#else<br />- bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, 1024);<br />-#endif<br />-<br />- if (bh) {<br />- ret = scsi_partsize(bh, capacity,<br />- &geom[2], &geom[0], &geom[1]);<br />-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)<br />- kfree(bh);<br />-#else<br />- brelse(bh);<br />-#endif<br />- if (ret != -1)<br />- return (ret);<br />- }<br />- heads = 64;<br />- sectors = 32;<br />- cylinders = aic_sector_div(capacity, heads, sectors);<br />-<br />- if (aic79xx_extended != 0)<br />- extended = 1;<br />- else<br />- extended = (ahd->flags & AHD_EXTENDED_TRANS_A) != 0;<br />- if (extended && cylinders >= 1024) {<br />- heads = 255;<br />- sectors = 63;<br />- cylinders = aic_sector_div(capacity, heads, sectors);<br />- }<br />- geom[0] = heads;<br />- geom[1] = sectors;<br />- geom[2] = cylinders;<br />- return (0);<br />-}<br />-#endif<br />-<br /> /*<br /> * Abort the current SCSI command(s).<br /> */<br />@@ -1613,9 +1541,6 @@<br /> .eh_abort_handler = ahd_linux_abort,<br /> .eh_device_reset_handler = ahd_linux_dev_reset,<br /> .eh_bus_reset_handler = ahd_linux_bus_reset,<br />-#if defined(__i386__)<br />- .bios_param = ahd_linux_biosparam,<br />-#endif<br /> .can_queue = AHD_MAX_QUEUE,<br /> .this_id = -1,<br /> .cmd_per_lun = 2,<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/aic7xxx/aic7xxx_osm.c ./linux-2.6.9/drivers/scsi/aic7xxx/aic7xxx_osm.c<br />--- ./linux-2.6.9-orig/drivers/scsi/aic7xxx/aic7xxx_osm.c 2005-03-31 16:26:50.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/aic7xxx/aic7xxx_osm.c 2005-03-31 17:08:18.000000000 +0400<br />@@ -732,18 +732,10 @@<br /> static int ahc_linux_slave_alloc(Scsi_Device *);<br /> static int ahc_linux_slave_configure(Scsi_Device *);<br /> static void ahc_linux_slave_destroy(Scsi_Device *);<br />-#if defined(__i386__)<br />-static int ahc_linux_biosparam(struct scsi_device*,<br />- struct block_device*,<br />- sector_t, int[]);<br />-#endif<br /> #else<br /> static int ahc_linux_release(struct Scsi_Host *);<br /> static void ahc_linux_select_queue_depth(struct Scsi_Host *host,<br /> Scsi_Device *scsi_devs);<br />-#if defined(__i386__)<br />-static int ahc_linux_biosparam(Disk *, kdev_t, int[]);<br />-#endif<br /> #endif<br /> static int ahc_linux_bus_reset(Scsi_Cmnd *);<br /> static int ahc_linux_dev_reset(Scsi_Cmnd *);<br />@@ -1132,75 +1124,6 @@<br /> }<br /> #endif<br /> <br />-#if defined(__i386__)<br />-/*<br />- * Return the disk geometry for the given SCSI device.<br />- */<br />-static int<br />-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)<br />-ahc_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,<br />- sector_t capacity, int geom[])<br />-{<br />- uint8_t *bh;<br />-#else<br />-ahc_linux_biosparam(Disk *disk, kdev_t dev, int geom[])<br />-{<br />- struct scsi_device *sdev = disk->device;<br />- u_long capacity = disk->capacity;<br />- struct buffer_head *bh;<br />-#endif<br />- int heads;<br />- int sectors;<br />- int cylinders;<br />- int ret;<br />- int extended;<br />- struct ahc_softc *ahc;<br />- u_int channel;<br />-<br />- ahc = *((struct ahc_softc **)sdev->host->hostdata);<br />- channel = sdev->channel;<br />-<br />-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)<br />- bh = scsi_bios_ptable(bdev);<br />-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,17)<br />- bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, block_size(dev));<br />-#else<br />- bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, 1024);<br />-#endif<br />-<br />- if (bh) {<br />- ret = scsi_partsize(bh, capacity,<br />- &geom[2], &geom[0], &geom[1]);<br />-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)<br />- kfree(bh);<br />-#else<br />- brelse(bh);<br />-#endif<br />- if (ret != -1)<br />- return (ret);<br />- }<br />- heads = 64;<br />- sectors = 32;<br />- cylinders = aic_sector_div(capacity, heads, sectors);<br />-<br />- if (aic7xxx_extended != 0)<br />- extended = 1;<br />- else if (channel == 0)<br />- extended = (ahc->flags & AHC_EXTENDED_TRANS_A) != 0;<br />- else<br />- extended = (ahc->flags & AHC_EXTENDED_TRANS_B) != 0;<br />- if (extended && cylinders >= 1024) {<br />- heads = 255;<br />- sectors = 63;<br />- cylinders = aic_sector_div(capacity, heads, sectors);<br />- }<br />- geom[0] = heads;<br />- geom[1] = sectors;<br />- geom[2] = cylinders;<br />- return (0);<br />-}<br />-#endif<br />-<br /> /*<br /> * Abort the current SCSI command(s).<br /> */<br />@@ -1262,9 +1185,6 @@<br /> .eh_abort_handler = ahc_linux_abort,<br /> .eh_device_reset_handler = ahc_linux_dev_reset,<br /> .eh_bus_reset_handler = ahc_linux_bus_reset,<br />-#if defined(__i386__)<br />- .bios_param = ahc_linux_biosparam,<br />-#endif<br /> .can_queue = AHC_MAX_QUEUE,<br /> .this_id = -1,<br /> .cmd_per_lun = 2,<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/aic7xxx/aic7xxx_osm.h ./linux-2.6.9/drivers/scsi/aic7xxx/aic7xxx_osm.h<br />--- ./linux-2.6.9-orig/drivers/scsi/aic7xxx/aic7xxx_osm.h 2005-03-31 16:26:50.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/aic7xxx/aic7xxx_osm.h 2005-03-31 17:08:32.000000000 +0400<br />@@ -809,7 +809,7 @@<br /> <br /> /**************************** VL/EISA Routines ********************************/<br /> #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) \<br />- && (defined(__i386__) || defined(__alpha__)) \<br />+ && defined(__alpha__) \<br /> && (!defined(CONFIG_EISA)))<br /> #define CONFIG_EISA<br /> #endif<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/aic7xxx_old.c ./linux-2.6.9/drivers/scsi/aic7xxx_old.c<br />--- ./linux-2.6.9-orig/drivers/scsi/aic7xxx_old.c 2005-03-31 16:26:52.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/aic7xxx_old.c 2005-03-31 17:17:20.000000000 +0400<br />@@ -265,7 +265,7 @@<br /> # define FALSE 0<br /> #endif<br /> <br />-#if defined(__powerpc__) || defined(__i386__) || defined(__x86_64__)<br />+#if defined(__powerpc__) || defined(__x86_64__)<br /> # define MMAPIO<br /> #endif<br /> <br />@@ -6813,7 +6813,7 @@<br /> * we #ifdef this entire function to avoid compiler warnings about<br /> * an unused function.<br /> *-F*************************************************************************/<br />-#if defined(__i386__) || defined(__alpha__)<br />+#if defined(__alpha__)<br /> static int<br /> aic7xxx_probe(int slot, int base, ahc_flag_type *flags)<br /> {<br />@@ -6873,7 +6873,7 @@<br /> <br /> return (-1);<br /> }<br />-#endif /* (__i386__) || (__alpha__) */<br />+#endif /* (__alpha__) */<br /> <br /> <br /> /*+F*************************************************************************<br />@@ -8999,12 +8999,12 @@<br /> struct aic7xxx_host *current_p = NULL;<br /> struct aic7xxx_host *list_p = NULL;<br /> int found = 0;<br />-#if defined(__i386__) || defined(__alpha__)<br />+#if defined(__alpha__)<br /> ahc_flag_type flags = 0;<br /> int type;<br /> #endif<br /> unsigned char sxfrctl1;<br />-#if defined(__i386__) || defined(__alpha__)<br />+#if defined(__alpha__)<br /> unsigned char hcntrl, hostconf;<br /> unsigned int slot, base;<br /> #endif<br />@@ -9687,7 +9687,7 @@<br /> }<br /> #endif /* CONFIG_PCI */<br /> <br />-#if defined(__i386__) || defined(__alpha__)<br />+#if defined(__alpha__)<br /> /*<br /> * EISA/VL-bus card signature probe.<br /> */<br />@@ -9916,7 +9916,7 @@<br /> found++;<br /> }<br /> <br />-#endif /* defined(__i386__) || defined(__alpha__) */<br />+#endif /* defined(__alpha__) */<br /> <br /> /*<br /> * Now, we re-order the probed devices by BIOS address and BUS class.<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/BusLogic.h ./linux-2.6.9/drivers/scsi/BusLogic.h<br />--- ./linux-2.6.9-orig/drivers/scsi/BusLogic.h 2005-03-31 16:26:51.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/BusLogic.h 2005-03-31 17:13:39.000000000 +0400<br />@@ -39,10 +39,8 @@<br /> CONFIG_PCI set.<br /> */<br /> <br />-#ifndef __i386__<br /> #undef CONFIG_SCSI_OMIT_FLASHPOINT<br /> #define CONFIG_SCSI_OMIT_FLASHPOINT<br />-#endif<br /> <br /> #ifndef CONFIG_PCI<br /> #undef CONFIG_SCSI_OMIT_FLASHPOINT<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/dpt_i2o.c ./linux-2.6.9/drivers/scsi/dpt_i2o.c<br />--- ./linux-2.6.9-orig/drivers/scsi/dpt_i2o.c 2005-03-31 16:26:51.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/dpt_i2o.c 2005-03-31 17:14:17.000000000 +0400<br />@@ -83,9 +83,7 @@<br /> */<br /> static dpt_sig_S DPTI_sig = {<br /> {'d', 'P', 't', 'S', 'i', 'G'}, SIG_VERSION,<br />-#ifdef __i386__<br />- PROC_INTEL, PROC_386 | PROC_486 | PROC_PENTIUM | PROC_SEXIUM,<br />-#elif defined(__ia64__)<br />+#if defined(__ia64__)<br /> PROC_INTEL, PROC_IA64,<br /> #elif defined(__sparc__)<br /> PROC_ULTRASPARC, PROC_ULTRASPARC,<br />@@ -1831,9 +1829,7 @@<br /> si.busType = SI_PCI_BUS;<br /> si.processorFamily = DPTI_sig.dsProcessorFamily;<br /> <br />-#if defined __i386__ <br />- adpt_i386_info(&si);<br />-#elif defined (__ia64__)<br />+#if defined (__ia64__)<br /> adpt_ia64_info(&si);<br /> #elif defined(__sparc__)<br /> adpt_sparc_info(&si);<br />@@ -1881,32 +1877,6 @@<br /> }<br /> #endif<br /> <br />-#if defined __i386__<br />-<br />-static void adpt_i386_info(sysInfo_S* si)<br />-{<br />- // This is all the info we need for now<br />- // We will add more info as our new<br />- // managmenent utility requires it<br />- switch (boot_cpu_data.x86) {<br />- case CPU_386:<br />- si->processorType = PROC_386;<br />- break;<br />- case CPU_486:<br />- si->processorType = PROC_486;<br />- break;<br />- case CPU_586:<br />- si->processorType = PROC_PENTIUM;<br />- break;<br />- default: // Just in case <br />- si->processorType = PROC_PENTIUM;<br />- break;<br />- }<br />-}<br />-<br />-#endif<br />-<br />-<br /> static int adpt_ioctl(struct inode *inode, struct file *file, uint cmd,<br /> ulong arg)<br /> {<br />diff -ru ./linux-2.6.9-orig/drivers/scsi/dpti.h ./linux-2.6.9/drivers/scsi/dpti.h<br />--- ./linux-2.6.9-orig/drivers/scsi/dpti.h 2005-03-31 16:26:50.000000000 +0400<br />+++ ./linux-2.6.9/drivers/scsi/dpti.h 2005-03-31 17:09:25.000000000 +0400<br />@@ -334,9 +334,6 @@<br /> #if defined __alpha__ <br /> static void adpt_sparc_info(sysInfo_S* si);<br /> #endif<br />-#if defined __i386__<br />-static void adpt_i386_info(sysInfo_S* si);<br />-#endif<br /> <br /> #define PRINT_BUFFER_SIZE 512<br /> <br /><br />-<br />To unsubscribe from this list: send the line "unsubscribe linux-kernel" in<br />the body of a message to majordomo@vger.kernel.org<br />More majordomo info at <a href="http://vger.kernel.org/majordomo-info.html">http://vger.kernel.org/majordomo-info.html</a><br />Please read the FAQ at <a href="http://www.tux.org/lkml/">http://www.tux.org/lkml/</a><br /><br /></pre></td><td width="32" rowspan="2" class="c" valign="top"><img src="/images/icornerr.gif" width="32" height="32" alt="\" /></td></tr><tr><td align="right" valign="bottom"> 聽 </td></tr><tr><td align="right" valign="bottom">聽</td><td class="c" valign="bottom" style="padding-bottom: 0px"><img src="/images/bcornerl.gif" width="32" height="32" alt="\" /></td><td class="c">聽</td><td class="c" valign="bottom" style="padding-bottom: 0px"><img src="/images/bcornerr.gif" width="32" height="32" alt="/" /></td></tr><tr><td align="right" valign="top" colspan="2"> 聽 </td><td class="lm">Last update: 2005-04-06 13:31 聽聽 [from the cache]<br />漏2003-2020 <a href="http://blog.jasper.es/"><span itemprop="editor">Jasper Spaans</span></a>|hosted at <a href="https://www.digitalocean.com/?refcode=9a8e99d24cf9">Digital Ocean</a> and my Meterkast|<a href="http://blog.jasper.es/categories.html#lkml-ref">Read the blog</a></td><td>聽</td></tr></table><script language="javascript" src="/js/styleswitcher.js" type="text/javascript"></script></body></html>