FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_mem_fl.c @ 373:5f7d723b9343
os_mem_fl.c: os_MemInit() done
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 01 Jun 2014 00:46:47 +0000 |
parents | 47391b5c15ff |
children | 3efb28578dad |
comparison
equal
deleted
inserted
replaced
372:47391b5c15ff | 373:5f7d723b9343 |
---|---|
132 "Heapname:%s Addr:%lx Size:%ld Min:%ld Free:%ld Suspend:%d", | 132 "Heapname:%s Addr:%lx Size:%ld Min:%ld Free:%ld Suspend:%d", |
133 Name, (UNSIGNED) pStartAddress, Size, Min, Available, | 133 Name, (UNSIGNED) pStartAddress, Size, Min, Available, |
134 SuspendType); | 134 SuspendType); |
135 return(OS_OK); | 135 return(OS_OK); |
136 } | 136 } |
137 | |
138 GLOBAL LONG | |
139 os_MemInit(void) | |
140 { | |
141 USHORT i; | |
142 | |
143 if (NU_Create_Semaphore(&MemSemCB, "MEMSEM", 1, NU_PRIORITY) | |
144 != NU_SUCCESS) | |
145 return(OS_ERROR); | |
146 for (i = 0; i <= MaxPoolGroups; i++) { | |
147 PoolBorder[i].Start = (char *)0xFFFFFFFF; | |
148 PoolBorder[i].End = (char *)0; | |
149 PartGrpTable[i].grp_head = 0; | |
150 PartGrpTable[i].name[0] = 0; | |
151 } | |
152 MemPoolTable[0].pcb = &mem_pool_head; | |
153 return(OS_OK); | |
154 } |