2016-05-24 07:27:26 +00:00
|
|
|
/* Copyright 2016 secXsQuared
|
|
|
|
* Distributed under GPL license
|
|
|
|
* See COPYING under root for details
|
|
|
|
*/
|
|
|
|
|
2016-05-17 19:03:18 +00:00
|
|
|
#ifndef _SALLOC_H_
|
|
|
|
#define _SALLOC_H_
|
|
|
|
|
2016-06-25 07:25:54 +00:00
|
|
|
#include "g_abi.h"
|
2016-05-17 19:03:18 +00:00
|
|
|
|
2016-06-01 05:00:29 +00:00
|
|
|
void KAPI salloc_init(void *base, uint32_t size);
|
2016-05-17 19:03:18 +00:00
|
|
|
|
2016-06-01 05:00:29 +00:00
|
|
|
void* KAPI salloc(void *base, uint32_t size);
|
2016-05-24 07:10:32 +00:00
|
|
|
|
2016-06-01 05:00:29 +00:00
|
|
|
void KAPI sfree(void *base, void *ptr);
|
2016-05-24 07:10:32 +00:00
|
|
|
|
2016-06-01 05:00:29 +00:00
|
|
|
bool KAPI salloc_assert(void *base, uint32_t blk_size[], bool blk_free[], uint32_t size);
|
2016-05-17 19:03:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|