FreeCalypso > hg > freecalypso-sw
diff gsm-fw/gpf/osl/os_mem_fl.c @ 398:2dc9f34e3036
os_mem_fl.c: os_CreateMemoryPool() started
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 13 Jun 2014 22:12:05 +0000 |
parents | f5b9c6d63718 |
children | d26a9e3de626 |
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_mem_fl.c Fri Jun 13 19:44:27 2014 +0000 +++ b/gsm-fw/gpf/osl/os_mem_fl.c Fri Jun 13 22:12:05 2014 +0000 @@ -366,3 +366,28 @@ NU_Release_Semaphore(&MemSemCB); return(OS_OK); } + +GLOBAL LONG +os_CreatePartitionPool_fixed_pool_size(OS_HANDLE TaskHandle, char *GroupName, + void *Addr, USHORT PoolSize, + ULONG PartSize, OS_HANDLE *GroupHandle, + ULONG *NumCreated) +{ + USHORT num; + + num = PoolSize / (PartSize + PT_CHKOVERHEAD + PT_OVERHEAD); + *NumCreated = num; + return os_CreatePartitionPool(TaskHandle, GroupName, Addr, num, + PartSize, GroupHandle); +} + +GLOBAL LONG +os_CreateMemoryPool(OS_HANDLE TaskHandle, char *Name, void *Addr, + ULONG PoolSize, OS_HANDLE *PoolHandle) +{ + STATUS sts; + + sts = NU_Obtain_Semaphore(&MemSemCB, NU_SUSPEND); + + +}