FreeCalypso > hg > freecalypso-sw
changeset 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 | e2a05eb3129f |
children | 8df6f38d2f3a |
files | gsm-fw/gpf/osl/Makefile gsm-fw/gpf/osl/os_mem_fl.c |
diffstat | 2 files changed, 38 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/Makefile Thu May 29 06:41:52 2014 +0000 +++ b/gsm-fw/gpf/osl/Makefile Fri May 30 08:18:21 2014 +0000 @@ -4,7 +4,7 @@ XOPTS= -DRUN_FLASH -mthumb IOBJS= os_com_ir.o os_pro_ir.o -XOBJS= os_com_fl.o os_drv.o os_isr.o os_pro_fl.o +XOBJS= os_com_fl.o os_drv.o os_isr.o os_mem_fl.o os_pro_fl.o all: ${IOBJS} ${XOBJS}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/gpf/osl/os_mem_fl.c Fri May 30 08:18:21 2014 +0000 @@ -0,0 +1,37 @@ +/* + * This C module is a reconstruction based on the disassembly of + * os_mem.obj in frame_na7_db_fl.lib from the Leonardo package. + */ + +/* set of included headers from COFF symtab: */ +#include <stdio.h> +#include <string.h> +#include "gpfconf.h" /* FreeCalypso addition */ +#include "../../nucleus/nucleus.h" +#include "typedefs.h" +#include "os.h" +#include "gdi.h" +#include "os_types.h" +#include "os_glob.h" + +extern T_OS_PART_GRP_TABLE_ENTRY PartGrpTable[]; +extern T_OS_MEM_POOL_TABLE_ENTRY MemPoolTable[]; +extern T_OS_POOL_BORDER PoolBorder[]; + +OS_HANDLE os_ext_pool_handle; +OS_HANDLE os_int_pool_handle; + +static USHORT NumOfMemoryPools; +static USHORT Idx; +static T_OS_PART_POOL *part_pool; +static int grp_hndl; +static NU_SEMAPHORE MemSemCB; +static NU_MEMORY_POOL mem_pool_head; + +GLOBAL LONG +os_SetPoolHandles(OS_HANDLE ext_pool_handle, OS_HANDLE int_pool_handle) +{ + os_ext_pool_handle = ext_pool_handle; + os_int_pool_handle = int_pool_handle; + return(OS_OK); +}