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 [EMAIL PROTECTED] 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 _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
