The Mavericks have reached an agreement in principle on a three-year contract with sixth man Jerry Stackhouse, two sources said Thursday afternoon.

While details remain to be finalized, the two sides have agreed on a deal that will make Stackhouse's salary for next season more than the mid-level exception, which is expected to be around $6 million. If the deal starts at $6.5 million, it would be worth more than $21 million for three seasons.

It was not immediately known if any option years, either for the team or for Stackhouse, were included in the deal.