grehan
75726c8985
Fix bugs with operand ordering and unnecessary sync/eieio ops. Mostly
...
obtained from Alpha atomic.h
Approved by: Benno
2003-01-18 11:28:36 +00:00
grehan
4e75b6dbdf
Fixed branch labels
...
Approved by: benno
2002-09-19 04:39:59 +00:00
benno
d4d68be2fe
Make atomic_cmpset_32 correctly return 0 on failure.
2002-02-24 23:31:49 +00:00
benno
a304a71cd2
Fix the atomic_*_32 operations. These were written before I had the ability
...
to test them properly and before I had a working knowledge of GCC asm
constraints.
2001-06-27 12:17:23 +00:00
benno
cbd5efc8f5
Don't initialise ret in atomic_cmpset_32.
...
Add more synchronisation.
2001-06-26 13:54:17 +00:00
benno
b55c34215e
Fix asm constraints for atomic_cmpset_32. This fix may also be needed
...
elsewhere.
2001-06-24 06:36:28 +00:00
benno
f371c393d1
This commit (along with one pending in sys/dev/ofw and one in sys/conf) give
...
us our first minimal glimpse of PowerPC support.
With this code we can get to the "mountroot>" prompt on my Apple iMac. We
can't get any further due to lack of clock and interrupt handling, among other
things. This does however mean that pmap and VM are initialising.
We're fairly dependant on OpenFirmware at this point, but I hope to add
support for other classes of firmware at a later stage.
Reviewed by: obrien, dfr
2001-06-16 07:14:07 +00:00
benno
2031489c0d
PowerPC atomic operation functions.
...
Some of these are dependant on an inline function (powerpc_mb()) that is
yet to come.
Reviewed by: obrien
2001-01-07 03:46:01 +00:00
obrien
20531f4651
Shells for the atomic operations FreeBSD needs.
...
This is just waiting for a budding PowerPC ASM guy to fill in the blanks.
2001-01-01 23:06:59 +00:00