#
1.9 |
|
25-Jan-2018 |
mpi |
Move common mutex implementations to a MI place.
Archs not yet converted can to the jump by defining __USE_MI_MUTEX.
ok visa@
|
#
1.8 |
|
13-Jan-2018 |
mpi |
Define and use IPL_MPFLOOR in our common mutex implementation.
ok kettenis@, visa@
|
#
1.7 |
|
12-Jan-2018 |
mpi |
Unify <machine/mutex.h> a bit further.
`mtx_owner' becomes the first field of 'struct mutex' on i386/amd64/arm64.
ok visa@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.6 |
|
20-Apr-2017 |
visa |
Hook up mutex(9) to witness(4).
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.5 |
|
14-Aug-2015 |
dlg |
replace the asm mutexes with a c implementation.
there's no real functional advantage to this, except that it will make it easier to add deadlock detection to the code.
this is modelled on the c mutex implementation thats on alpha, mips64, and hppa.
ok mpi@ kettenis@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.4 |
|
29-Mar-2014 |
guenther |
It's been a quarter century: we can assume volatile is present with that name.
ok dlg@ mpi@ deraadt@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.3 |
|
22-Jan-2014 |
kettenis |
To prevent lock ordering problems with the kernel lock, we need to make sure we block all interrupts that can grab the kernel lock. The simplest way to achieve this is to make sure mutexes always raise the ipl to the highest level that has interrupts that grab the kernel lock. This will allow us to have "mpsafe" interrupt handlers at lower priority levels.
No change for non-MULTIPROCESSOR kernels.
tested by mpi@, landry@ ok mpi@, dlg@
|
Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.2 |
|
05-May-2007 |
miod |
Define MUTEX_OLDIPL where they were missing, will be used (reasonably) shortly.
|
#
1.1 |
|
22-Mar-2007 |
kettenis |
Move powerpc to __HAVE_MUTEX. With help from drahn@. Tested by nick@, xsa@, deraadt@.
"reads right" deraadt@
|
#
1.8 |
|
13-Jan-2018 |
mpi |
Define and use IPL_MPFLOOR in our common mutex implementation.
ok kettenis@, visa@
|
#
1.7 |
|
12-Jan-2018 |
mpi |
Unify <machine/mutex.h> a bit further.
`mtx_owner' becomes the first field of 'struct mutex' on i386/amd64/arm64.
ok visa@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.6 |
|
20-Apr-2017 |
visa |
Hook up mutex(9) to witness(4).
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.5 |
|
14-Aug-2015 |
dlg |
replace the asm mutexes with a c implementation.
there's no real functional advantage to this, except that it will make it easier to add deadlock detection to the code.
this is modelled on the c mutex implementation thats on alpha, mips64, and hppa.
ok mpi@ kettenis@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.4 |
|
29-Mar-2014 |
guenther |
It's been a quarter century: we can assume volatile is present with that name.
ok dlg@ mpi@ deraadt@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.3 |
|
22-Jan-2014 |
kettenis |
To prevent lock ordering problems with the kernel lock, we need to make sure we block all interrupts that can grab the kernel lock. The simplest way to achieve this is to make sure mutexes always raise the ipl to the highest level that has interrupts that grab the kernel lock. This will allow us to have "mpsafe" interrupt handlers at lower priority levels.
No change for non-MULTIPROCESSOR kernels.
tested by mpi@, landry@ ok mpi@, dlg@
|
Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.2 |
|
05-May-2007 |
miod |
Define MUTEX_OLDIPL where they were missing, will be used (reasonably) shortly.
|
#
1.1 |
|
22-Mar-2007 |
kettenis |
Move powerpc to __HAVE_MUTEX. With help from drahn@. Tested by nick@, xsa@, deraadt@.
"reads right" deraadt@
|