Bulat Ziganshin schrieb:
> Hello Christian,
>
> Tuesday, November 21, 2006, 4:15:58 PM, you wrote:
>
>> Yes, "lock\ncmpxchg" works for me, too
>
> may be, it is possible to use 'db' here to generate required prefix?
> it should reliably work across all platforms
I don't know what you mean, but I'll try out another patch if it helps.
Christian
The code by "objdump --disassemble Schedule.thr_o" looks as follows:
00000284 <scheduleDoGC>:
284: 55 push %ebp
285: 57 push %edi
286: 56 push %esi
287: 53 push %ebx
288: 83 ec 1c sub $0x1c,%esp
28b: 89 c3 mov %eax,%ebx
28d: 89 44 24 08 mov %eax,0x8(%esp)
291: 89 d5 mov %edx,%ebp
293: 89 4c 24 04 mov %ecx,0x4(%esp)
297: 31 d2 xor %edx,%edx
299: b9 01 00 00 00 mov $0x1,%ecx
29e: 89 d0 mov %edx,%eax
2a0: f0 0f b1 0d 1c 00 00 lock cmpxchg %ecx,0x1c
2a7: 00
2a8: 85 c0 test %eax,%eax
2aa: 74 2c je 2d8 <scheduleDoGC+0x54>
2ac: 8d 74 24 08 lea 0x8(%esp),%esi
2b0: 85 db test %ebx,%ebx
2b2: 74 11 je 2c5 <scheduleDoGC+0x41>
2b4: 83 ec 08 sub $0x8,%esp
2b7: 55 push %ebp
2b8: 56 push %esi
2b9: e8 fc ff ff ff call 2ba <scheduleDoGC+0x36>
[...]
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc