2.5.49-ac1 : include/asm-386/io_apic.h

2.5.49-ac1 : include/asm-386/io_apic.h

Post by Frank Davi » Wed, 27 Nov 2002 04:40:06



Hello all,
  The following patch seems to fix the 'apic_sis_bug undeclared' error
within include/asm-i386/io_apic.h . (I'm still compiling
2.5.49-ac1). sis_apic_bug is defined in
arch/i386/kernel/io_apic.c . Please review.

Regards,
Frank

--- linux/include/asm-i386/io_apic.h.old        Mon Nov 25 21:24:21 2002

  *
  * Copyright (C) 1997, 1998, 1999, 2000 Ingo Molnar
  */
+extern int sis_apic_bug;

 #ifdef CONFIG_X86_IO_APIC

  */
 static inline void io_apic_modify(unsigned int apic, unsigned int reg, unsigned int value)
 {
-       if(apic_sis_bug)
+       if(sis_apic_bug)
                *IO_APIC_BASE(apic) = reg;
        *(IO_APIC_BASE(apic)+4) = value;
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.49-ac1 : include/asm-386/io_apic.h

Post by Justin Pryzb » Wed, 27 Nov 2002 08:10:07


I had to work a slightly larger patch than Frank.  Note that I am assuming that
s/PCI_VENDOR_ID_SIS/PCI_VENDOR_ID_SI/ is correct, as PCI_VENDOR_ID_SIS shows up
nowhere in the kernel tree.

Please CC me in all replies.

Justin

diff -Naur linux.2.5.49-ac1/drivers/pci/quirks.c linux.2.5.49-ac1-jp/drivers/pci/quirks.c
--- linux.2.5.49-ac1/drivers/pci/quirks.c       2002-11-26 00:28:18.000000000 -0500

 #include <linux/init.h>
 #include <linux/delay.h>

+static int sis_apic_bug;
+
 #undef DEBUG


 static void __init quirk_ioapic_rmw(struct pci_dev *dev)
 {
        if(dev->devfn == 0 && dev->bus->number == 0)
-               apic_sys_bug = 1;
+               sis_apic_bug = 1;
 }

 #ifdef CONFIG_X86_IO_APIC
        { PCI_FIXUP_FINAL,      PCI_VENDOR_ID_VIA,      PCI_DEVICE_ID_VIA_82C686,       quirk_via_ioapic },
        { PCI_FIXUP_FINAL,      PCI_VENDOR_ID_AMD,      PCI_DEVICE_ID_AMD_VIPER_7410,   quirk_amd_ioapic },
-       { PCI_FIXUP_FINAL,      PCI_VENDOR_ID_SIS,      PCI_ANY_ID,                     quirk_ioapic_rmw },
+       { PCI_FIXUP_FINAL,      PCI_VENDOR_ID_SI,       PCI_ANY_ID,                     quirk_ioapic_rmw },
 #endif
        { PCI_FIXUP_HEADER,     PCI_VENDOR_ID_VIA,      PCI_DEVICE_ID_VIA_82C586_3,     quirk_via_acpi },
        { PCI_FIXUP_HEADER,     PCI_VENDOR_ID_VIA,      PCI_DEVICE_ID_VIA_82C686_4,     quirk_via_acpi },
diff -Naur linux.2.5.49-ac1/include/asm-i386/io_apic.h linux.2.5.49-ac1-jp/include/asm-i386/io_apic.h
--- linux.2.5.49-ac1/include/asm-i386/io_apic.h 2002-11-26 00:28:19.000000000 -0500

  * Copyright (C) 1997, 1998, 1999, 2000 Ingo Molnar
  */

+extern int sis_apic_bug;
+
 #ifdef CONFIG_X86_IO_APIC

 #define APIC_MISMATCH_DEBUG

  linux-2.5.49-ac1
1K Download

 
 
 

1. 2.5.49-ac1 - more info on make error

| Knowing that modules are still broken, I changed all modules to be
| built-in and dropped all support for modules and retried the compile. I
| have disabled all but the features I really want to test on the new
| kernel, so I will not be reducing the features any more.

I haven't seen any replies or fixes for this.  Have you?

drivers/built-in.o(.data+0x31e14): undefined reference to `local symbols
in discarded section .exit.text'

Please visit http://www.kernelnewbies.org/scripts/ and download
the 'reference-discarded.pl' script, run it, and let us know where the
problem is.

--
~Randy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Dual Booting a SPARC 20?

3. 2.5.49-ac1 local data...

4. Noisy HardDisk won't power down

5. Linux 2.5.49-ac1

6. Using sock_create, sock_sendmsg and sock_recvmsg in module

7. 2.5.49-ac1 : apic_sis_bug undeclared

8. Dead code in i386/kernel/process.c

9. patch: 2.5.49+bk(-ac1,-ac2) missing interrupt.h sound/oss/sb_ess.c

10. 2.5.49 ignores user suspend

11. 2.5.49 - semaphore operations with timeouts

12. 2.5.49 - shutdown issues on Dell Latitude

13. Literacy watch 2.5.49