Operating System - HP-UX
1832944 Members
2616 Online
110048 Solutions
New Discussion

Atomic instructions on HPUX

 
inactive account
Frequent Advisor

Atomic instructions on HPUX

How is it possible to use atomic operations instructions with aCC on HPUX 11.00 ?

Thanks

Laurent
2 REPLIES 2
Michael Ehrig
Advisor

Re: Atomic instructions on HPUX

Laurant,
I suspect you're looking for the load-clear-word instruction (LDCWS on PA) for atomic locking? The easiest way is to write a small function in assembler and call it from C/C++.

Michael
Harri Pasanen_1
Advisor

Re: Atomic instructions on HPUX

If you look at Linux kernel sources for PA-RISC, you should find the required inlined assembler code. Then the excercise is just to turn it to an aCC version.