Matt Stupple writes: > [b]testasm.il:[/b] > > .inline matt_cas_64,0 > movq %rsi, %rax > lock > cmpxchgq %rdx, (%rdi) > ret
If you declare this as an inline, where does the 'ret' go? > 0x000000000000000c: <bad address 0xc> > (dbx) where > [1] 0xc(0xfffffd7fffdff870, 0xc, 0x15, 0x0, 0xc, 0x0), at 0xc > > So, something is clearly very wrong with my assembler or how I'm trying to > use it. Can anyone point me in the right direction? It looks like you just did a return through 'foo' on the stack. Foo has the value 0xc. -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 _______________________________________________ opensolaris-code mailing list [EMAIL PROTECTED] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
