Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it
From: Luca Barbieri (ldb@ldb.ods.org)
Date: Thu Aug 08 2002 - 17:40:17 EST
- Next message: Paul Larson: "Re: [PATCH] Linux-2.5 fix/improve get_pid()"
- Previous message: Rik van Riel: "Re: [PATCH] Linux-2.5 fix/improve get_pid()"
- In reply to: Roman Zippel: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Next in thread: Alan Cox: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: Alan Cox: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: Roman Zippel: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On Fri, 2002-08-09 at 00:27, Roman Zippel wrote:
> Hi,
>
> On 9 Aug 2002, Luca Barbieri wrote:
>
> > - Didn't implement atomic_{add,sub,inc,dec}_return. This is currently
> > not used in the generic kernel but it can be useful.
>
> m68k has a cmpxchg like instruction, which can be used for that.
>
> > - Had inline assembly for things the compiler should be able to generate
> > on its own
>
> The compiler can cache the value in a register
It shouldn't since it is volatile and the machine has instructions with
memory operands.
Anyway, let's ignore the m68k-specific parts of the patch.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Next message: Paul Larson: "Re: [PATCH] Linux-2.5 fix/improve get_pid()"
- Previous message: Rik van Riel: "Re: [PATCH] Linux-2.5 fix/improve get_pid()"
- In reply to: Roman Zippel: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Next in thread: Alan Cox: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: Alan Cox: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: Roman Zippel: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
This archive was generated by hypermail 2b29
: Thu Aug 15 2002 - 22:00:18 EST