From: "M. Koehrer" <mathias_koehrer@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Atomic 64 bit write access on PCIe device
Date: Wed, 20 Feb 2008 09:25:13 +0100 (CET) [thread overview]
Message-ID: <23559868.1203495913401.JavaMail.ngmail@domain.hid> (raw)
Hi everybody,
perhaps this issue is off-topic, but I expect that there are many experts on that issue reading the Xenomai list...
I have a Core2Duo Intel CPU (32 bit mode) and a proprietary PCI Express I/O board plugged in.
This PCI Express I/O board has some 64 bit registers that are mapped into address space via mmap.
Now, I want to write atomically (one PCIe access) to one of the 64 bit registers.
Unfortunately, the Intel CPUs does not have an atomic 64 bit write operations when running the CPU in 32 bit mode.
When doing something like
volatile unsigned long long *ull = register_address;
*ull = my_new_register_value;
I see the gcc is generating two 32 bit write accesses. Of course this will not lead to an atomic 64 bit write access.
Any idea, how I can write 64 bit integers atomically to such an 64 bit register?
Thanks for any feedback!
Regards
Mathias
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur 29,95 Euro inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
next reply other threads:[~2008-02-20 8:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 8:25 M. Koehrer [this message]
2008-02-20 8:55 ` [Xenomai-help] Atomic 64 bit write access on PCIe device Gilles Chanteperdrix
2008-02-20 9:19 ` Philippe Gerum
-- strict thread matches above, loose matches on Subject: below --
2008-02-20 9:50 Fillod Stephane
2008-02-20 12:50 ` M. Koehrer
2008-02-20 14:20 Fillod Stephane
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=23559868.1203495913401.JavaMail.ngmail@domain.hid \
--to=mathias_koehrer@domain.hid \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.