lkml.org 
[lkml]   [1999]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-2.3.31: drivers/char/drm/drmP.h does not allow 386 build
On Thu  9 Dec 1999 13:14:32 +0000,
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > 2) Those interested implement the generic cmpxchg to work on 386
> > processors, if there is a need. At this time, I don't think this
> > work is justified unless someone else needs cmpxchg in the kernel.
>
> Alpha, Sparc64, everyone else with PCI and high end 3d cards. cmpxchg is
> very much an Intelism

Sure. On RISC machines, cmpxchg is easy to implement with the
load-locked/store-conditional instruction pair (the notion and use of
compare and exchange predates Intel's cmpxchg instruction). Richard
Henderson has already implemented a generic cmpxchg routine in the kernel
for Alpha and Intel, and it should be easy for someone to add one for the
Sparc64 and other modern processors that need it.

What I'm saying is that implementing a generic cmpxchg for _80386_ is not
justified at this time.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.064 / U:1.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site