The NetBSD Project

CVS log for src/sys/arch/mips/include/lock.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / mips / include

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Apr 9 23:43:20 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -6 lines
mips: Convert lock.h to membar_release/acquire.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Feb 12 17:10:02 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +63 -53 lines
mips: Brush up __cpu_simple_lock.

- Eradicate last vestiges of mb_* barriers.

- In __cpu_simple_lock_init, omit needless barrier.  It is the
  caller's responsibility to ensure __cpu_simple_lock_init happens
  before other operations on it anyway, so there was never any need
  for a barrier here.

- In __cpu_simple_lock_try, leave comments about memory ordering
  guarantees of the kernel's _atomic_cas_uint, which are inexplicably
  different from the non-underscored atomic_cas_uint.

- In __cpu_simple_unlock, use membar_exit instead of mb_memory, and do
  it unconditionally.

  This ensures that in __cpu_simple_lock/.../__cpu_simple_unlock, all
  memory operations in the ellipsis happen before the store that
  releases the lock.

  - On Octeon, the barrier was omitted altogether, which is a bug --
    it needs to be there or else there is no happens-before relation
    and whoever takes the lock next might see stale values stored or
    even stomp over the unlocking CPU's delayed loads.

  - On non-Octeon, the mb_memory was sync.  Using membar_exit
    preserves this.

  XXX On Octeon, membar_exit only issues syncw -- this seems wrong,
  only store-before-store and not load/store-before-store, unless the
  CNMIPS architecture guarantees it is sufficient here like
  SPARCv8/v9 PSO (`Partial Store Order').

- Leave an essay with citations about why we have an apparently
  pointless syncw _after_ releasing a lock, to work around a design
  bug^W^Wquirk in cnmips which sometimes buffers stores for hundreds
  of thousands of cycles for fun unless you issue syncw.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Aug 5 05:24:44 2020 UTC (4 years, 4 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +9 -9 lines
Indent branch delay slots in asm code (from skrll@).
Be consistent within this file with how asm code is formatted.

Revision 1.18.14.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:27 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +8 -3 lines
update from HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Sep 17 00:01:07 2017 UTC (7 years, 2 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
more const.

Revision 1.18.32.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:01 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +6 -1 lines
Sync with HEAD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jun 1 22:55:13 2015 UTC (9 years, 6 months ago) by matt
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -1 lines
Rework cavium support in preparation for MULTIPROCESSOR support

Revision 1.17.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:03 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +8 -5 lines
Sync with HEAD.

Revision 1.17.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:51:03 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +8 -5 lines
sync with head

Revision 1.17.10.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:09:48 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +8 -5 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Feb 20 07:45:47 2011 UTC (13 years, 9 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -5 lines
Major merge forward from matt-nb5-mips64.
New fixup code.
New common SPL code.
New common interrupt code.
Move related variables into structures.
Cleanup locore (move MD variable into it).
Kill StudlyCaps
Use PCU for FPU

Revision 1.16.16.1: download - view: text, markup, annotated - select for diffs
Mon Feb 15 03:11:58 2010 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +2 -2 lines
In SIMPLELOCK_LOCKED_P check against != UNLOCKED instead of == LOCKED.
This is so the compiler can emit a bnez instead of loading 1 into a register
and then doing beq.

Revision 1.15.18.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:31 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.15.18.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.18.1: +6 -4 lines
sync with head.

Revision 1.16.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:16:30 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +6 -4 lines
Sync with HEAD.

Revision 1.15.14.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:15 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15.14.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.14.1: +5 -3 lines
Sync with HEAD.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jan 12 03:05:10 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4 lines
Use userspace version unless _HARDKERNEL.  Otherwise we use atomic
cas to implement spinlocks and spinlocks to implement atomic cas....
which might suck.

Since the userspace version uses ll/sc, which doesn't exist on
R2000/R3000, rump will not work on those platforms.  *snif* (well,
pthread in general AFAICT).

Revision 1.15.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:24 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -8 lines
Sync with HEAD.

Revision 1.15.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:24 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +1 -8 lines
sync with head.

Revision 1.15.18.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:22:49 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -8 lines
sync with head.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:28 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, matt-nb5-mips64
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -8 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.12.24.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:47:14 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.12.24.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.24.1: +5 -4 lines
sync with HEAD

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:17:23 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +5 -4 lines
Sync with HEAD.

Revision 1.5.16.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:25:20 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.5.16.3: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.16.3: +5 -4 lines
sync with head

Revision 1.12.6.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:37:26 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.12.6.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.6.1: +5 -4 lines
Sync with HEAD.

Revision 1.12.22.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:05 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.12.22.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.22.1: +5 -4 lines
Sync with HEAD.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Nov 29 00:14:27 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -4 lines
- Change _lock_cas and friends to do "compare and swap" instead of "compare
  and set".
- Rename them to _atomic_cas_uint, _atomic_cas_ulong etc and provide strong
  aliases for the other names CAS goes by.

Revision 1.12.24.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:19:02 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +25 -1 lines
sync with HEAD

Revision 1.5.16.3: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:27:14 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.5.16.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.16.2: +25 -1 lines
sync with head.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:55:36 2007 UTC (17 years, 2 months ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:38:12 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +25 -1 lines
Sync with head.

Revision 1.12.14.1: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:24:21 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +25 -1 lines
Sync with HEAD

Revision 1.12.22.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:27:33 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +25 -1 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Sep 10 11:34:09 2007 UTC (17 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, bouyer-xenamd64
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +25 -1 lines
Merge nick-csl-alignment.

Revision 1.12.18.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 08:24:06 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +25 -1 lines
Provide __SIMPLELOCK_{UN,}LOCKED_P and __cpu_simple_lock_{set,clear}
for all architectures.

Revision 1.5.16.2: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:07:26 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.5.16.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.16.1: +88 -68 lines
sync with head.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Feb 15 15:27:54 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, ppcoea-renovation, nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -4 lines
Pacify lint/gcc.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Feb 10 17:34:46 2007 UTC (17 years, 10 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
s/___asm/__asm/

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:06 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +82 -68 lines
Merge newlock2 to head.

Revision 1.9.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 27 14:00:51 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.9.6.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.6.1: +49 -74 lines
Make mips systems work.

Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Fri Dec 29 20:27:42 2006 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +40 -1 lines
Checkpoint work in progress.

Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:41:26 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
sync with head

Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:45:13 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
sync with head.

Revision 1.5.16.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:53:38 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -7 lines
sync with head.

Revision 1.8.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:44:52 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
Sync with head.

Revision 1.8.6.1: download - view: text, markup, annotated - select for diffs
Wed Jun 7 15:49:38 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
Sync with head.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jun 3 23:58:48 2006 UTC (18 years, 6 months ago) by simonb
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Adjust asm constraints for more pickier gcc4.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Dec 28 19:09:29 2005 UTC (18 years, 11 months ago) by perry
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timcounters-final, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -5 lines
inline -> __inline

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:07:19 2005 UTC (18 years, 11 months ago) by perry
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -9 lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:18:09 2005 UTC (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1 lines
merge ktrace-lwp.

Revision 1.4.6.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:18:39 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.6.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.2: +1 -1 lines
Fix the sync with head I botched.

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:37:18 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.1: +0 -0 lines
Sync with HEAD.

Revision 1.4.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:37:39 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -6 lines
Sync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 26 22:46:01 2003 UTC (21 years, 2 months ago) by nathanw
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -6 lines
Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
so that they can be used in a namespace-friendly way.

Revision 1.2.14.4: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:11:03 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.2.14.3: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.14.3: +1 -6 lines
Sync with HEAD.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Dec 5 02:56:51 2002 UTC (22 years ago) by simonb
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -6 lines
Drop the _KERNEL test; these functions are needed for SMP and other ports
don't bother with a _KERNEL check.

Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:34:04 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +111 -4 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Sep 16 07:00:43 2002 UTC (22 years, 3 months ago) by gmcgarry
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +111 -4 lines
Bring down from nathanw_sa branch.

Revision 1.2.14.3: download - view: text, markup, annotated - select for diffs
Sun Jul 14 01:23:43 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: nathanw_sa
Diff to: previous 1.2.14.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.14.2: +10 -3 lines
Can't load the lock in the delay slot of its test.  Also explicitly
include delay slots according to common convention.

Revision 1.2.14.2: download - view: text, markup, annotated - select for diffs
Thu Nov 29 11:12:18 2001 UTC (23 years ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.2.14.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.14.1: +4 -3 lines
Fix branch instruction in delay slot.  Ooops!!

Revision 1.2.14.1: download - view: text, markup, annotated - select for diffs
Wed Nov 28 10:04:34 2001 UTC (23 years ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +103 -4 lines
Add support for R4x00 locks using LL/SC.   Needed by new libpthread

As discussed on Mips mailing list there is no equivalent functionality
for R3000 processors. Restartable Atomic Sequences will be implemented
in the future to provide similar functionality on R3000 uniprocessor
machines.

Revision 1.2.6.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 20:13:31 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.6.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.6.1: +51 -0 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.2.6.1
Tue May 2 04:41:07 2000 UTC (24 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.2: +0 -51 lines
file lock.h was added on branch thorpej_scsipi on 2000-11-20 20:13:31 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue May 2 04:41:07 2000 UTC (24 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: thorpej_scsipi, nathanw_sa, kqueue
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines
Let each platform typedef the new __cpu_simple_lock_t, which should
be the most efficient type used for the atomic operations in the
simplelock structure, and should also be __volatile.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Apr 29 03:31:51 2000 UTC (24 years, 7 months ago) by thorpej
Branches: MAIN
Require that each each MACHINE/MACHINE_ARCH supply a lock.h.  This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>