summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat/fapiPlatUtil.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatUtil.C')
-rw-r--r--src/usr/hwpf/plat/fapiPlatUtil.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C
index d03b6705b..269c36fe0 100644
--- a/src/usr/hwpf/plat/fapiPlatUtil.C
+++ b/src/usr/hwpf/plat/fapiPlatUtil.C
@@ -334,7 +334,7 @@ void* fapiPlatMalloc(size_t s)
{
if (s > PAGE_SIZE)
{
- s = ALIGN_TO_NEXT_POWER_OF_TWO_PAGES(s);
+ s = PAGE_SIZE * ALIGN_POW2(ALIGN_PAGE(s) / PAGE_SIZE);
}
return malloc(s);
}
OpenPOWER on IntegriCloud