cvs commit: src/sys/i386/include

Matthew Dillon dillon at apollo.backplane.com
Wed Dec 8 16:00:24 PST 2004


:...
:>     sys/i386/include     gencount.h 
:>   Log:
:>   Implement generation counters as (at least) 64 bit counters. The increment
:>   and get operations are interrupt safe, but not MP-safe.
:>   
:>   The gencount_inc implementation uses critical sections, which is the best
:>   possible for generic IA32 code.
:
:I think I can get the gencount_inc fully atomic for Pentium+, but this needs
:some more work first.
:
:Joerg

    What's this for ?  Generally speaking I don't think we want to abstract
    this.  Atomicy requirements for generation counters is going to be highly
    dependant on the situation, all these functions will do is confuse 
    matters.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Commits mailing list