History log of /src/common/lib/libc/arch/powerpc/atomic |
Revision | Date | Author | Comments |
1.6 | 04-Jan-2009 |
pooka | branches: 1.6.50; allow inclusion of atomic ops in librump
|
1.5 | 29-Sep-2008 |
ad | Allow atomic ops to be built as part of libpthread.
|
1.4 | 11-Feb-2008 |
ad | Only build atomic ops for libkern/libc.
|
1.3 | 10-Feb-2008 |
ad | Enable the atomic ops in userspace.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file Makefile.inc was initially added on branch thorpej-atomic.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file Makefile.inc was added on branch matt-armv6 on 2008-01-09 01:20:59 +0000
|
1.6.50.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.6.50.1 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.9 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.8 | 07-Mar-2014 |
matt | branches: 1.8.26; Reduce duplication. Use beqlr to quicken returns
|
1.7 | 15-Jan-2011 |
matt | branches: 1.7.6; 1.7.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.6 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.5 | 28-Apr-2008 |
martin | branches: 1.5.2; Remove clause 3 and 4 from TNF licenses
|
1.4 | 13-Feb-2008 |
dogcow | branches: 1.4.4; add missing %. (hi matt!)
|
1.3 | 12-Feb-2008 |
matt | Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_add.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_add.S was added on branch matt-armv6 on 2008-01-09 01:21:00 +0000
|
1.4.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.4.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.5.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.7.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.7.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.8.26.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.8.26.1 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.8 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.7 | 07-Mar-2014 |
matt | branches: 1.7.26; Reduce duplication. Use beqlr to quicken returns
|
1.6 | 15-Jan-2011 |
matt | branches: 1.6.6; 1.6.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.5 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.4 | 28-Apr-2008 |
martin | branches: 1.4.2; Remove clause 3 and 4 from TNF licenses
|
1.3 | 12-Feb-2008 |
matt | branches: 1.3.4; Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_and.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_and.S was added on branch matt-armv6 on 2008-01-09 01:21:00 +0000
|
1.3.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.3.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.4.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.6.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.6.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.7.26.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.7.26.1 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.10 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.9 | 01-Mar-2020 |
rin | Implement workaround for IBM405 Errata 77 (aka CPU_210), where interrupted stwcx. may errantly write data to memory:
https://elinux.org/images/1/1d/Ppc405gp-errata.pdf
This is because stwcx. is split into two pieces in the pipeline.
We need to (1) insert dcbt before every stwcx. instruction, as well as (2) insert sync before every rfi/rfci instruction.
It is unclear which processors are affected, but according to Linux, all 405-based cores up until 405GPR and 405EP are affected:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/40x/Kconfig#L140
For kernel, this workaround can be restricted to affected processors. However, for kernel modules and userland, we have to enable it for all 32bit powerpc archs in order to share common binaries as before.
Proposed on port-powerpc:
http://mail-index.netbsd.org/port-powerpc/2020/02/21/msg003583.html
|
1.8 | 07-Mar-2014 |
matt | branches: 1.8.26; 1.8.28; Reduce duplication. Use beqlr to quicken returns
|
1.7 | 15-Jan-2011 |
matt | branches: 1.7.6; 1.7.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.6 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.5 | 28-Apr-2008 |
martin | branches: 1.5.2; Remove clause 3 and 4 from TNF licenses
|
1.4 | 12-Feb-2008 |
matt | branches: 1.4.4; Use %rN as all new code is supposed to.
|
1.3 | 10-Feb-2008 |
ad | Add atomic_cas_foo_ni().
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_cas.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_cas.S was added on branch matt-armv6 on 2008-01-09 01:21:00 +0000
|
1.4.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.4.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.5.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.7.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.7.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.8.28.1 | 03-Mar-2020 |
martin | Pull up following revision(s) (requested by rin in ticket #755):
sys/arch/evbppc/conf/std.virtex: revision 1.4 sys/arch/powerpc/powerpc/trap_subr.S: revision 1.81 sys/arch/powerpc/ibm4xx/4xx_trap_subr.S: revision 1.8 sys/arch/evbppc/conf/std.walnut: revision 1.9 common/lib/libc/arch/powerpc/atomic/atomic_op_asm.h: revision 1.7 sys/arch/powerpc/include/asm.h: revision 1.49 common/lib/libc/arch/powerpc/atomic/atomic_cas.S: revision 1.9 sys/arch/powerpc/ibm4xx/trap_subr.S: revision 1.28 sys/arch/powerpc/include/lock.h: revision 1.15 sys/arch/evbppc/conf/std.obs266: revision 1.3 common/lib/libc/arch/powerpc/atomic/atomic_swap.S: revision 1.8 sys/arch/powerpc/powerpc/locore_subr.S: revision 1.61 sys/arch/powerpc/powerpc/lock_stubs.S: revision 1.12 sys/arch/evbppc/conf/std.obs200: revision 1.5
Implement workaround for IBM405 Errata 77 (aka CPU_210), where interrupted stwcx. may errantly write data to memory:
https://elinux.org/images/1/1d/Ppc405gp-errata.pdf
This is because stwcx. is split into two pieces in the pipeline.
We need to (1) insert dcbt before every stwcx. instruction, as well as (2) insert sync before every rfi/rfci instruction.
It is unclear which processors are affected, but according to Linux, all 405-based cores up until 405GPR and 405EP are affected:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/40x/Kconfig#L140
For kernel, this workaround can be restricted to affected processors.
However, for kernel modules and userland, we have to enable it for all 32bit powerpc archs in order to share common binaries as before. Proposed on port-powerpc:
http://mail-index.netbsd.org/port-powerpc/2020/02/21/msg003583.html
|
1.8.26.2 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.8.26.1 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.8 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.7 | 07-Mar-2014 |
matt | branches: 1.7.26; Reduce duplication. Use beqlr to quicken returns
|
1.6 | 15-Jan-2011 |
matt | branches: 1.6.6; 1.6.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.5 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.4 | 28-Apr-2008 |
martin | branches: 1.4.2; Remove clause 3 and 4 from TNF licenses
|
1.3 | 12-Feb-2008 |
matt | branches: 1.3.4; Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_dec.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_dec.S was added on branch matt-armv6 on 2008-01-09 01:21:01 +0000
|
1.3.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.3.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.4.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.6.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.6.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.7.26.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.7.26.1 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.8 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.7 | 07-Mar-2014 |
matt | branches: 1.7.26; Reduce duplication. Use beqlr to quicken returns
|
1.6 | 15-Jan-2011 |
matt | branches: 1.6.6; 1.6.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.5 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.4 | 28-Apr-2008 |
martin | branches: 1.4.2; Remove clause 3 and 4 from TNF licenses
|
1.3 | 12-Feb-2008 |
matt | branches: 1.3.4; Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_inc.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_inc.S was added on branch matt-armv6 on 2008-01-09 01:21:01 +0000
|
1.3.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.3.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.4.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.6.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.6.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.7.26.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.7.26.1 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.8 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.7 | 01-Mar-2020 |
rin | Implement workaround for IBM405 Errata 77 (aka CPU_210), where interrupted stwcx. may errantly write data to memory:
https://elinux.org/images/1/1d/Ppc405gp-errata.pdf
This is because stwcx. is split into two pieces in the pipeline.
We need to (1) insert dcbt before every stwcx. instruction, as well as (2) insert sync before every rfi/rfci instruction.
It is unclear which processors are affected, but according to Linux, all 405-based cores up until 405GPR and 405EP are affected:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/40x/Kconfig#L140
For kernel, this workaround can be restricted to affected processors. However, for kernel modules and userland, we have to enable it for all 32bit powerpc archs in order to share common binaries as before.
Proposed on port-powerpc:
http://mail-index.netbsd.org/port-powerpc/2020/02/21/msg003583.html
|
1.6 | 07-Mar-2014 |
matt | branches: 1.6.26; 1.6.28; Reduce duplication. Use beqlr to quicken returns
|
1.5 | 15-Jan-2011 |
matt | branches: 1.5.6; 1.5.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.4 | 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.3 | 12-Feb-2008 |
matt | branches: 1.3.4; Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_op_asm.h was initially added on branch thorpej-atomic.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_op_asm.h was added on branch matt-armv6 on 2008-01-09 01:21:01 +0000
|
1.3.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.5.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.5.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.6.28.1 | 03-Mar-2020 |
martin | Pull up following revision(s) (requested by rin in ticket #755):
sys/arch/evbppc/conf/std.virtex: revision 1.4 sys/arch/powerpc/powerpc/trap_subr.S: revision 1.81 sys/arch/powerpc/ibm4xx/4xx_trap_subr.S: revision 1.8 sys/arch/evbppc/conf/std.walnut: revision 1.9 common/lib/libc/arch/powerpc/atomic/atomic_op_asm.h: revision 1.7 sys/arch/powerpc/include/asm.h: revision 1.49 common/lib/libc/arch/powerpc/atomic/atomic_cas.S: revision 1.9 sys/arch/powerpc/ibm4xx/trap_subr.S: revision 1.28 sys/arch/powerpc/include/lock.h: revision 1.15 sys/arch/evbppc/conf/std.obs266: revision 1.3 common/lib/libc/arch/powerpc/atomic/atomic_swap.S: revision 1.8 sys/arch/powerpc/powerpc/locore_subr.S: revision 1.61 sys/arch/powerpc/powerpc/lock_stubs.S: revision 1.12 sys/arch/evbppc/conf/std.obs200: revision 1.5
Implement workaround for IBM405 Errata 77 (aka CPU_210), where interrupted stwcx. may errantly write data to memory:
https://elinux.org/images/1/1d/Ppc405gp-errata.pdf
This is because stwcx. is split into two pieces in the pipeline.
We need to (1) insert dcbt before every stwcx. instruction, as well as (2) insert sync before every rfi/rfci instruction.
It is unclear which processors are affected, but according to Linux, all 405-based cores up until 405GPR and 405EP are affected:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/40x/Kconfig#L140
For kernel, this workaround can be restricted to affected processors.
However, for kernel modules and userland, we have to enable it for all 32bit powerpc archs in order to share common binaries as before. Proposed on port-powerpc:
http://mail-index.netbsd.org/port-powerpc/2020/02/21/msg003583.html
|
1.6.26.2 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.6.26.1 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.8 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.7 | 07-Mar-2014 |
matt | branches: 1.7.26; Reduce duplication. Use beqlr to quicken returns
|
1.6 | 15-Jan-2011 |
matt | branches: 1.6.6; 1.6.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.5 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.4 | 28-Apr-2008 |
martin | branches: 1.4.2; Remove clause 3 and 4 from TNF licenses
|
1.3 | 12-Feb-2008 |
matt | branches: 1.3.4; Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_or.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_or.S was added on branch matt-armv6 on 2008-01-09 01:21:02 +0000
|
1.3.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.3.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.4.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.6.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.6.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.7.26.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.7.26.1 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.9 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.8 | 01-Mar-2020 |
rin | Implement workaround for IBM405 Errata 77 (aka CPU_210), where interrupted stwcx. may errantly write data to memory:
https://elinux.org/images/1/1d/Ppc405gp-errata.pdf
This is because stwcx. is split into two pieces in the pipeline.
We need to (1) insert dcbt before every stwcx. instruction, as well as (2) insert sync before every rfi/rfci instruction.
It is unclear which processors are affected, but according to Linux, all 405-based cores up until 405GPR and 405EP are affected:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/40x/Kconfig#L140
For kernel, this workaround can be restricted to affected processors. However, for kernel modules and userland, we have to enable it for all 32bit powerpc archs in order to share common binaries as before.
Proposed on port-powerpc:
http://mail-index.netbsd.org/port-powerpc/2020/02/21/msg003583.html
|
1.7 | 07-Mar-2014 |
matt | branches: 1.7.26; 1.7.28; Reduce duplication. Use beqlr to quicken returns
|
1.6 | 15-Jan-2011 |
matt | branches: 1.6.6; 1.6.12; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.5 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.4 | 28-Apr-2008 |
martin | branches: 1.4.2; Remove clause 3 and 4 from TNF licenses
|
1.3 | 12-Feb-2008 |
matt | branches: 1.3.4; Use %rN as all new code is supposed to.
|
1.2 | 28-Nov-2007 |
ad | branches: 1.2.4; Atomic ops for powerpc. Please review.
|
1.1 | 26-Apr-2007 |
thorpej | branches: 1.1.2; file atomic_swap.S was initially added on branch thorpej-atomic.
|
1.1.2.2 | 26-Apr-2007 |
thorpej | First-cut at powerpc64 atomic ops.
|
1.1.2.1 | 26-Apr-2007 |
thorpej | W-I-P atomic ops for powerpc. No memory barrier ops yet.
|
1.2.4.3 | 23-Mar-2008 |
matt | sync with HEAD
|
1.2.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.2.4.1 | 28-Nov-2007 |
matt | file atomic_swap.S was added on branch matt-armv6 on 2008-01-09 01:21:02 +0000
|
1.3.4.2 | 04-Jun-2008 |
yamt | sync with head
|
1.3.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.4.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.6.12.1 | 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.6.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.7.28.1 | 03-Mar-2020 |
martin | Pull up following revision(s) (requested by rin in ticket #755):
sys/arch/evbppc/conf/std.virtex: revision 1.4 sys/arch/powerpc/powerpc/trap_subr.S: revision 1.81 sys/arch/powerpc/ibm4xx/4xx_trap_subr.S: revision 1.8 sys/arch/evbppc/conf/std.walnut: revision 1.9 common/lib/libc/arch/powerpc/atomic/atomic_op_asm.h: revision 1.7 sys/arch/powerpc/include/asm.h: revision 1.49 common/lib/libc/arch/powerpc/atomic/atomic_cas.S: revision 1.9 sys/arch/powerpc/ibm4xx/trap_subr.S: revision 1.28 sys/arch/powerpc/include/lock.h: revision 1.15 sys/arch/evbppc/conf/std.obs266: revision 1.3 common/lib/libc/arch/powerpc/atomic/atomic_swap.S: revision 1.8 sys/arch/powerpc/powerpc/locore_subr.S: revision 1.61 sys/arch/powerpc/powerpc/lock_stubs.S: revision 1.12 sys/arch/evbppc/conf/std.obs200: revision 1.5
Implement workaround for IBM405 Errata 77 (aka CPU_210), where interrupted stwcx. may errantly write data to memory:
https://elinux.org/images/1/1d/Ppc405gp-errata.pdf
This is because stwcx. is split into two pieces in the pipeline.
We need to (1) insert dcbt before every stwcx. instruction, as well as (2) insert sync before every rfi/rfci instruction.
It is unclear which processors are affected, but according to Linux, all 405-based cores up until 405GPR and 405EP are affected:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/40x/Kconfig#L140
For kernel, this workaround can be restricted to affected processors.
However, for kernel modules and userland, we have to enable it for all 32bit powerpc archs in order to share common binaries as before. Proposed on port-powerpc:
http://mail-index.netbsd.org/port-powerpc/2020/02/21/msg003583.html
|
1.7.26.2 | 21-Apr-2020 |
martin | Sync with HEAD
|
1.7.26.1 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.6 | 09-Apr-2022 |
riastradh | Introduce membar_acquire/release. Deprecate membar_enter/exit.
The names membar_enter/exit were unclear, and the documentation of membar_enter has disagreed with the implementations on sparc, powerpc, and even x86(!) for the entire time it has been in NetBSD.
The terms `acquire' and `release' are ubiquitous in the literature today, and have been adopted in the C and C++ standards to mean load-before-load/store and load/store-before-store, respectively, which are exactly the orderings required by acquiring and releasing a mutex, as well as other useful applications like decrementing a reference count and then freeing the underlying object if it went to zero.
Originally I proposed changing one word in the documentation for membar_enter to make it load-before-load/store instead of store-before-load/store, i.e., to make it an acquire barrier. I proposed this on the grounds that
(a) all implementations guarantee load-before-load/store, (b) some implementations fail to guarantee store-before-load/store, and (c) all uses in-tree assume load-before-load/store.
I verified parts (a) and (b) (except, for (a), powerpc didn't even guarantee load-before-load/store -- isync isn't necessarily enough; need lwsync in general -- but it _almost_ did, and it certainly didn't guarantee store-before-load/store).
Part (c) might not be correct, however: under the mistaken assumption that atomic-r/m/w then membar-w/rw is equivalent to atomic-r/m/w then membar-r/rw, I only audited the cases of membar_enter that _aren't_ immediately after an atomic-r/m/w. All of those cases assume load-before-load/store. But my assumption was wrong -- there are cases of atomic-r/m/w then membar-w/rw that would be broken by changing to atomic-r/m/w then membar-r/rw:
https://mail-index.netbsd.org/tech-kern/2022/03/29/msg028044.html
Furthermore, the name membar_enter has been adopted in other places like OpenBSD where it actually does follow the documentation and guarantee store-before-load/store, even if that order is not useful. So the name membar_enter currently lives in a bad place where it means either of two things -- r/rw or w/rw.
With this change, we deprecate membar_enter/exit, introduce membar_acquire/release as better names for the useful pair (r/rw and rw/w), and make sure the implementation of membar_enter guarantees both what was documented _and_ what was implemented, making it an alias for membar_sync.
While here, rework all of the membar_* definitions and aliases. The new logic follows a rule to make it easier to audit:
membar_X is defined as an alias for membar_Y iff membar_X is guaranteed by membar_Y.
The `no stronger than' relation is (the transitive closure of):
- membar_consumer (r/r) is guaranteed by membar_acquire (r/rw) - membar_producer (w/w) is guaranteed by membar_release (rw/w) - membar_acquire (r/rw) is guaranteed by membar_sync (rw/rw) - membar_release (rw/w) is guaranteed by membar_sync (rw/rw)
And, for the deprecated membars:
- membar_enter (whether r/rw, w/rw, or rw/rw) is guaranteed by membar_sync (rw/rw) - membar_exit (rw/w) is guaranteed by membar_release (rw/w)
(membar_exit is identical to membar_release, but the name is deprecated.)
Finally, while here, annotate some of the instructions with their semantics. For powerpc, leave an essay with citations on the unfortunate but -- as far as I can tell -- necessary decision to use lwsync, not isync, for membar_acquire and membar_consumer.
Also add membar(3) and atomic(3) man page links.
|
1.5 | 06-Apr-2022 |
riastradh | Nix trailing whitespace in files of membars, atomics, and lock stubs.
Will be touching many of these files soon for functional changes.
No functional change intended.
|
1.4 | 15-Jan-2011 |
matt | branches: 1.4.48; Use END(foo) everywhere. Make __cerror hidden. Use non-PLT calls to __cerror. Use assym.h when appropriate. Use addi to adjust stack instead of loading it. Add __RCSIDs Force -D_NOREGNAMES for all .S files. [this is all in preperation for secure plt support]
|
1.3 | 25-May-2008 |
chs | enable profiling of assembly functions.
|
1.2 | 28-Apr-2008 |
martin | branches: 1.2.2; Remove clause 3 and 4 from TNF licenses
|
1.1 | 28-Nov-2007 |
ad | branches: 1.1.4; 1.1.8; Atomic ops for powerpc. Please review.
|
1.1.8.2 | 04-Jun-2008 |
yamt | sync with head
|
1.1.8.1 | 18-May-2008 |
yamt | sync with head.
|
1.1.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.1.4.1 | 28-Nov-2007 |
matt | file membar_ops.S was added on branch matt-armv6 on 2008-01-09 01:21:02 +0000
|
1.2.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.4.48.2 | 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.4.48.1 | 21-Apr-2020 |
martin | Sync with HEAD
|