Page MenuHomeFreeBSD

Properly set the return value for casueword to 0 upon success.
ClosedPublic

Authored by ed on Oct 15 2015, 8:40 AM.
Tags
None
Referenced Files
F170761526: D3899.id9427.diff
Sun, Sep 6, 11:42 AM
F170721427: D3899.diff
Sun, Sep 6, 5:25 AM
Unknown Object (File)
Sat, Sep 5, 9:26 AM
Unknown Object (File)
Sat, Sep 5, 7:48 AM
Unknown Object (File)
Fri, Sep 4, 6:03 PM
Unknown Object (File)
Fri, Sep 4, 11:01 AM
Unknown Object (File)
Thu, Sep 3, 9:33 PM
Unknown Object (File)
Thu, Sep 3, 3:48 PM
Subscribers

Details

Summary

While trying to get multithreading working for CloudABI on aarch64, I
noticed that compare-and-exchange operations in kernelspace would always
fail. It turns out that we don't properly set the return value to 0 when
the compare and exchange succeeds.

Test Plan

The unit tests for CloudABI's C library now pass.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ed retitled this revision from to Properly set the return value for casueword to 0 upon success..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added a reviewer: andrew.
andrew edited edge metadata.
This revision is now accepted and ready to land.Oct 15 2015, 5:26 PM
This revision was automatically updated to reflect the committed changes.