Linux-MIPS Archive on
 help / Atom feed
* Re: [PATCH 3/3] MIPS: fix truncation in __cmpxchg_small for short values
       [not found] <>
@ 2019-02-11 20:03 ` Paul Burton
  0 siblings, 0 replies; 1+ messages in thread
From: Paul Burton @ 2019-02-11 20:03 UTC (permalink / raw)
  To: Michael Clark
  Cc: Linux RISC-V, Michael Clark, RISC-V Patches, Linux MIPS, linux-mips


Michael Clark wrote:
> __cmpxchg_small erroneously uses u8 for load comparison which can
> be either char or short. This patch changes the local varialble to
> u32 which is sufficiently sized, as the loaded value is already
> masked and shifted appropriately. Using an integer size avoids
> any unnecessary canonicalization from use of non native widths.
> This patch is part of a series that adapts the MIPS small word
> atomics code for xchg and cmpxchg on short and char to RISC-V.
> Cc: RISC-V Patches <>
> Cc: Linux RISC-V <>
> Cc: Linux MIPS <>
> Signed-off-by: Michael Clark <>

Applied to mips-fixes.


[ This message was auto-generated; if you believe anything is incorrect
  then please email to report it. ]

^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2019-02-11 20:03 ` [PATCH 3/3] MIPS: fix truncation in __cmpxchg_small for short values Paul Burton

Linux-MIPS Archive on

Archives are clonable:
	git clone --mirror linux-mips/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mips linux-mips/ \
	public-inbox-index linux-mips

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox