
22 Mar
2006
22 Mar
'06
9:40 p.m.
John Maddock wrote:
Program received signal SIGSEGV, Segmentation fault si_code: 1 - SEGV_MAPERR - Address not mapped to object. 0x40601e1 in boost::detail::atomic_decrement (pw=0x40014bd4) at sp_counted_base_gcc_ia64.hpp:52
The problem is that in __asm__ (" fetchadd4.rel %0=[%2],-1 ;; \n" the %2 register (r15 in my test) contains 0x40014bd4, while the address of *pw is actually 0x2000000040014bd4. Apparently g++ needs to be informed of the fact that %2 is an address register, not a data register. Now I only need to find out how to do that.