diff options
Diffstat (limited to 'src/usr/hwpf/plat')
| -rw-r--r-- | src/usr/hwpf/plat/fapiPlatUtil.C | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C index 64df4d33a..d03b6705b 100644 --- a/src/usr/hwpf/plat/fapiPlatUtil.C +++ b/src/usr/hwpf/plat/fapiPlatUtil.C @@ -40,7 +40,8 @@ #include <initservice/initsvcbreakpoint.H> #include <errl/errlentry.H> #include <initservice/initserviceif.H> - +#include <util/align.H> +#include <fapiPlatUtil.H> #ifdef __HOSTBOOT_RUNTIME #include <runtime/interface.h> @@ -325,3 +326,15 @@ fapi::ReturnCode fapiSpecialWakeup(const fapi::Target & i_target, } } + +//****************************************************************************** +// fapiPlatMalloc +//****************************************************************************** +void* fapiPlatMalloc(size_t s) +{ + if (s > PAGE_SIZE) + { + s = ALIGN_TO_NEXT_POWER_OF_TWO_PAGES(s); + } + return malloc(s); +} |

