Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Aug 2004 11:29:57 +0300
From:      Ville-Pertti Keinonen <will+freebsd-current@will.iki.fi>
To:        Bruce M Simpson <bms@spc.org>
Cc:        Tim Robbins <tjr@freebsd.org>
Subject:   Re: Atomic operations on i386/amd64
Message-ID:  <41134185.1090105@will.iki.fi>
In-Reply-To: <20040806023055.GC20148@empiric.icir.org>
References:  <20040805050422.GA41201@cat.robbins.dropbear.id.au> <200408051759.53079.jhb@FreeBSD.org> <4112B184.8010303@samsco.org> <20040806023055.GC20148@empiric.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce M Simpson wrote:

>Have a look at Linux. They ended up doing a runtime self-modifying kernel
>hack so they could ship generic kernels which used the appropriate locking
>instructions on each x86 family CPU.
>  
>
The idea of using self-modification to select locking modes (although 
for optional preemption, SMP and debugging rather than CPU model) is 
also described in a DEC Technical Journal article:

http://research.compaq.com/wrl/DECarchives/DTJ/DTJF03/DTJF03SC.TXT

I'm not sure whether the Linux implementation uses the same technique.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41134185.1090105>