Implement generation counters as (at least) 64 bit counters. The increment
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 8 Dec 2004 23:19:51 +0000 (23:19 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 8 Dec 2004 23:19:51 +0000 (23:19 +0000)
commitc0225cc7c568c0c726e5f156efbb7ced787048f7
treeb21e6ba0a122e42237085f2113f4858349a65113
parent9acc84504426bf05cc8d7339eee082ea86ca01c7
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.
sys/i386/include/gencount.h [new file with mode: 0644]
sys/platform/pc32/include/gencount.h [new file with mode: 0644]