lib: heap: Fix heap length

As part of x86 support heap len calculation has changed, which
introduces a bug for arm arch devices. Fix the heap length calculation.

CRs-Fixed: 399208
Change-Id: Ieb58a2bba7d6ad5efbb79c4fa7ca962c2129ee87
2 files changed