Thread (12 messages) read the whole thread 12 messages, 5 authors, 2007-01-17

Re: [PATCH] atomic_dec_if_positive sign extension fix

From: Olof Johansson <hidden>
Date: 2007-01-14 23:27:39

On Mon, 15 Jan 2007 10:09:42 +1100 Paul Mackerras [off-list ref] wrote:
NAK: Good fix for 64-bit, but it will break 32-bit.  I think a better
fix would be to use a cmpwi after the lwarx, and use addi rather than
addic..
Good point, I forgot about that when I suggested extsw to Rob.

Seems like spinlock.h solves the same problem by using a
__DO_SIGN_EXTEND define instead. Should we keep logic common as much as
possible and use the same method in atomic.h?


-Olof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help