FreeCalypso > hg > freecalypso-sw
changeset 438:0eb7c6389717
os_mem_ir.c: os_DeallocatePartition() done
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 22 Jun 2014 21:07:51 +0000 |
parents | 1d78af921a5a |
children | c2da9dd01f85 |
files | gsm-fw/gpf/osl/os_mem_ir.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_mem_ir.c Sun Jun 22 21:01:32 2014 +0000 +++ b/gsm-fw/gpf/osl/os_mem_ir.c Sun Jun 22 21:07:51 2014 +0000 @@ -49,3 +49,13 @@ else return(OS_PARTITION_GUARD_PATTERN_DESTROYED); } + +GLOBAL LONG +os_DeallocatePartition(OS_HANDLE TaskHandle, T_VOID_STRUCT *Buffer) +{ + if (os_is_valid_partition(Buffer) != OS_OK) + return(OS_ERROR); + if (NU_Deallocate_Partition(Buffer) != NU_SUCCESS) + return(OS_ERROR); + return(OS_OK); +}