Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1692154

Re: [PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl

From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl
Date 2017-07-19 21:50 +0200
Message-ID <u538S-4JC-19@gated-at.bofh.it> (permalink)
References <u4WK5-fH-17@gated-at.bofh.it> <u4WK6-fH-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jul 19, 2017 at 5:53 AM, Arnd Bergmann <arnd@arndb.de> wrote:
>
> I tried to mark the exact input buffer as an output here, but couldn't
> figure it out. As suggested by Linus, marking all memory as clobbered
> however is good enough too. For the outs operations, I also add the
> memory clobber, to force the input to be written to local variables.
> This is probably already guaranteed by the "asm volatile", but it can't
> hurt to do this for symmetry.

Ack, obviously looks fine to me.

                 Linus

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl Arnd Bergmann <arnd@arndb.de> - 2017-07-19 15:00 +0200
  Re: [PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl Arnd Bergmann <arnd@arndb.de> - 2017-07-19 21:30 +0200
  Re: [PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl Linus Torvalds <torvalds@linux-foundation.org> - 2017-07-19 21:50 +0200
  [tip:x86/urgent] x86/io: Add "memory" clobber to  insb/insw/insl/outsb/outsw/outsl tip-bot for Arnd Bergmann <tipbot@zytor.com> - 2017-07-20 12:40 +0200

csiph-web