Both GMR sensors and TMR sensors require a mechanism for maintaining the pinned layer in its pinned state.
This has been achieved by depositing the pinned layer such that it is exchange coupled with an antiferromagnetic material such as for example PtMn.