FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_mem_ir.c @ 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 |
comparison
equal
deleted
inserted
replaced
437:1d78af921a5a | 438:0eb7c6389717 |
---|---|
47 if (ptr[(pool->pm_partition_size - 4) >> 2] == GUARD_PATTERN) | 47 if (ptr[(pool->pm_partition_size - 4) >> 2] == GUARD_PATTERN) |
48 return(OS_OK); | 48 return(OS_OK); |
49 else | 49 else |
50 return(OS_PARTITION_GUARD_PATTERN_DESTROYED); | 50 return(OS_PARTITION_GUARD_PATTERN_DESTROYED); |
51 } | 51 } |
52 | |
53 GLOBAL LONG | |
54 os_DeallocatePartition(OS_HANDLE TaskHandle, T_VOID_STRUCT *Buffer) | |
55 { | |
56 if (os_is_valid_partition(Buffer) != OS_OK) | |
57 return(OS_ERROR); | |
58 if (NU_Deallocate_Partition(Buffer) != NU_SUCCESS) | |
59 return(OS_ERROR); | |
60 return(OS_OK); | |
61 } |