From b82ae48b36b54346c7dd0f348ba6d36c06638666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 26 Oct 2007 22:27:31 +0000 Subject: [PATCH] Note on use of TAS,CAS and CAS2 on Amiga. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22743 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/os/arch/m68k/atomic.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/system/libroot/os/arch/m68k/atomic.S b/src/system/libroot/os/arch/m68k/atomic.S index 65b4b6b861..8323d749e7 100644 --- a/src/system/libroot/os/arch/m68k/atomic.S +++ b/src/system/libroot/os/arch/m68k/atomic.S @@ -8,6 +8,14 @@ * d0,d1,a0,a1 are scratch regs, not to be saved. */ +/* + * see http://mail-index.netbsd.org/amiga/1995/06/ + * for concerns about TAS, CAS and Amiga. + * I suppose as long as we don't use it on a variable in + * chip ram it shouldn't be a problem, and since we don't + * have any SMP Amiga anyway it should be ok. + */ + #define FUNCTION(x) .global x; .type x,@function; x .text