comparison gsm-fw/gpf/osl/os_mem_fl.c @ 370:37e19cbbbc8d

OSL: os_mem_fl.c started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 30 May 2014 08:18:21 +0000
parents
children 8df6f38d2f3a
comparison
equal deleted inserted replaced
369:e2a05eb3129f 370:37e19cbbbc8d
1 /*
2 * This C module is a reconstruction based on the disassembly of
3 * os_mem.obj in frame_na7_db_fl.lib from the Leonardo package.
4 */
5
6 /* set of included headers from COFF symtab: */
7 #include <stdio.h>
8 #include <string.h>
9 #include "gpfconf.h" /* FreeCalypso addition */
10 #include "../../nucleus/nucleus.h"
11 #include "typedefs.h"
12 #include "os.h"
13 #include "gdi.h"
14 #include "os_types.h"
15 #include "os_glob.h"
16
17 extern T_OS_PART_GRP_TABLE_ENTRY PartGrpTable[];
18 extern T_OS_MEM_POOL_TABLE_ENTRY MemPoolTable[];
19 extern T_OS_POOL_BORDER PoolBorder[];
20
21 OS_HANDLE os_ext_pool_handle;
22 OS_HANDLE os_int_pool_handle;
23
24 static USHORT NumOfMemoryPools;
25 static USHORT Idx;
26 static T_OS_PART_POOL *part_pool;
27 static int grp_hndl;
28 static NU_SEMAPHORE MemSemCB;
29 static NU_MEMORY_POOL mem_pool_head;
30
31 GLOBAL LONG
32 os_SetPoolHandles(OS_HANDLE ext_pool_handle, OS_HANDLE int_pool_handle)
33 {
34 os_ext_pool_handle = ext_pool_handle;
35 os_int_pool_handle = int_pool_handle;
36 return(OS_OK);
37 }