linux emu - fix bug in futex
authorAlex Hornung <ahornung@gmail.com>
Tue, 16 Mar 2010 12:24:45 +0000 (12:24 +0000)
committerAlex Hornung <ahornung@gmail.com>
Tue, 16 Mar 2010 13:02:51 +0000 (13:02 +0000)
* when resetting the fault handler in futex_orl - futex_tail, reset ecx
  to the right value.

sys/emulation/linux/i386/linux_support.s

index 0bf33e6..2e4ad44 100644 (file)
@@ -115,6 +115,7 @@ futex_tail:
        movl    %eax,(%edx)
        xorl    %eax,%eax
        movl    PCPU(curthread),%ecx
+       movl    TD_PCB(%ecx),%ecx
        movl    %eax,PCB_ONFAULT(%ecx)
        ret