Re: [Dri-devel] [2.6 patch] disallow DRM on 386

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 01/21/04

  • Next message: Greg KH: "Re: 2.6.1-mm5"
    Date:	Wed, 21 Jan 2004 01:28:27 +0100
    To: Alan Cox <alan@lxorguk.ukuu.org.uk>
    
    

    On Wed, Jan 21, 2004 at 12:04:59AM +0000, Alan Cox wrote:
    > On Maw, 2004-01-20 at 21:24, Adrian Bunk wrote:
    > > I got the following compile error in 2.6.1-mm5 with X86_CMPXCHG=n.
    > > This problem is not specific to -mm, and it always occurs when you
    > > include support for the 386 cpu (oposed to the 486 or later cpus) since
    > > in this case X86_CMPXCHG=n and therefoore cmpxchg isn't defined in
    > > include/asm-i386/system.h .
    > >
    > > The patch below disallows DRM if X86_CMPXCHG=n.
    >
    > Ugly.
    >
    > Fix system.h to always define cmpxchg.h and check its presence at
    > runtime when the DRM module loads, then you can build 386 kernels that
    > support DRI on higher machines.
    >
    > The problem isnt that cmpxchg definitely doesn't exist, so system.h is
    > wrong IMHO

    ???

    AFAIR cmpxchg wasn't present in cpus earlier than the 486.

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    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/
    

  • Next message: Greg KH: "Re: 2.6.1-mm5"

    Relevant Pages

    • Re: Weirdness with suspending jobs in 2.6.9-rc3
      ... > sleep 5 ... > with older kernels. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.13-rc4-mm1: iptables DROP crashes the computer
      ... Which kernels are affected, and which are ... Does it still happen if you compile your kernel with preemption ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6: remove include/linux/acpi_serial.h
      ... no longer needed in recent 2.6 kernels. ... Could you include it's removal in one of your next updates? ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RFC: let x86_64 no longer define X86
      ... >>And if you want to support both older and more recent kernels, ... >>following dependencies will be correct both before and after this ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: silent semantic changes with reiser4
      ... Or between Linux systems with different kernels that happen to implement ... just to be thrown out later because nobody used it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)