
1. update osp_mem.h/osp_mem.s.c/osp_task.s.c 2. update case20, add del task 3. change the osp_task_create() and osp_del_task() output 4. update the osp_free_im_mem() add output 5. test: 5.1 spu(case0)+arm(case0): PASS 5.2 spu(case20)+arm(case20):PASS 5.3 spu(case21)+arm(case21):PASS 5.4 spu(case34)+arm(case5): PASS 5.5 spu(case44)+arm(case5): PASS 5.6 spu(case14)+arm(case20):PASS
26 lines
806 B
C
26 lines
806 B
C
#ifndef __OSP_MEM_H__
|
||
#define __OSP_MEM_H__
|
||
|
||
typedef struct tag_osp_im_mem_reg{
|
||
uint32_t phy_addr;
|
||
uint32_t len;
|
||
}osp_im_mem_reg;
|
||
|
||
extern char *osp_malloc(int size);
|
||
extern void osp_free(char *p);
|
||
extern void osp_heapmem_test(void);
|
||
extern int osp_mem_init(void);
|
||
extern int osp_show_im_mem_by_coreid(uint8_t core_id);
|
||
|
||
//extern uint32_t osp_get_ddr_mem(void);
|
||
|
||
/*
|
||
实际IM的地址空间:0x0000 0000 -- 0x0003 FFFF,共256K
|
||
预留前128K,则平台实际使用的IM地址空间:0x0002 0000 -- 0x0003 FFFF,共128K
|
||
*/
|
||
//#define OSP_MEM_POOL_START (0x00020000) /* 平台内存管理的空间在IM内存空间 */
|
||
#define OSP_MEM_POOL_SIZE (0x00009400) /* 平台可分配的IM内存空间大小[32K(任务栈)+5K(配置文件4K+预留1K)=37K] */
|
||
|
||
#endif
|
||
|