From: Valdis.Kletnieks@vt.edu
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: "Leonidas ." <leonidas137@gmail.com>,
Chris Friesen <cfriesen@nortel.com>,
Noah Watkins <noah@noahdesu.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Difference between atomic operations and memory barriers
Date: Wed, 28 Oct 2009 09:26:17 -0400 [thread overview]
Message-ID: <36159.1256736377@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Wed, 28 Oct 2009 12:00:05 +0200." <4AE81625.5000500@panasas.com>
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
On Wed, 28 Oct 2009 12:00:05 +0200, Boaz Harrosh said:
> What don't you know? the CPU that started it all was like that, the x86 16-bit
> "large" and "huge" model had a double register seg:offset set, also in-memory
> was double-ints(2*16) even the i386 was running 16 bit modes for a long time.
Yes, but there were instructions to load segment registers, and those were
atomic, and there were instructions to compute effective addresses based on the
segment registers, and those were basically atomic. But you never had a chance
to see a partly loaded segment register (just like in today's virtual memory
equivalents, a PTE's effect is basically atomic - you never see half the
address bits of a PTE take effect and not the other half).
Yes, if a segment register wasn't set right, you'd load/store from the wrong
place in memory (we *still* have that, playing with %fs and %gs). But that's
different than an actual load or store only half-happening, or happening partly
to an old place and partly to a new one, because a segment register is only
half-finished laoding.
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2009-10-28 13:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 17:19 Leonidas .
[not found] ` <7ADB5FD7-9C97-4987-BC20-997258B25FD2@noahdesu.com>
2009-10-26 18:22 ` Leonidas .
2009-10-26 18:54 ` Chris Friesen
2009-10-26 19:00 ` Leonidas .
2009-10-26 19:07 ` Noah Watkins
2009-10-26 19:34 ` Stefan Richter
2009-10-26 19:42 ` Noah Watkins
2009-10-27 11:51 ` Valdis.Kletnieks
2009-10-28 10:00 ` Boaz Harrosh
2009-10-28 13:26 ` Valdis.Kletnieks [this message]
2009-10-26 19:00 ` Stefan Richter
2009-10-26 19:05 ` Leonidas .
2009-10-27 10:21 ` Michael Schnell
2009-10-27 10:23 ` Leonidas .
2009-10-27 11:01 ` Michael Schnell
2009-10-27 14:57 ` Stefan Richter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36159.1256736377@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=bharrosh@panasas.com \
--cc=cfriesen@nortel.com \
--cc=leonidas137@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=noah@noahdesu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®