2019-04-04 07:11:35 +02:00
|
|
|
#include "platform.h"
|
|
|
|
|
2021-08-31 19:18:55 +02:00
|
|
|
#define SYSTEM_STACK_SAFE (64*1024)
|
|
|
|
#define USER_STACK_SAFE (32*1024)
|
2019-04-04 07:11:35 +02:00
|
|
|
|
2021-08-31 19:18:55 +02:00
|
|
|
// system stack (512 kB).
|
2019-04-04 07:11:35 +02:00
|
|
|
#define SYSTEM_STACK_SIZE (512*1024-SYSTEM_STACK_SAFE)
|
2021-08-31 19:18:55 +02:00
|
|
|
extern unsigned char *SystemStack;
|
2015-04-15 02:16:51 +02:00
|
|
|
|
2021-09-19 23:34:30 +02:00
|
|
|
void *CGD_malloc(int size);
|
|
|
|
void *CGD_calloc(int size);
|
|
|
|
void *CGD_realloc(void *p, int size);
|
2015-04-15 02:16:51 +02:00
|
|
|
|
|
|
|
int abs(int x);
|
2021-09-19 19:16:50 +02:00
|
|
|
int strnicmp (const char*s1,const char*s2,int iLen);
|
2015-04-15 02:16:51 +02:00
|
|
|
|
2021-08-14 11:55:20 +02:00
|
|
|
void I_Error (const char *error, ...);
|
2021-07-27 11:34:35 +02:00
|
|
|
|
2015-04-15 02:16:51 +02:00
|
|
|
//return ptr to flash
|
2021-09-20 10:24:18 +02:00
|
|
|
int (FindInFlash)(const void **buf, int size, int readpos);
|
2015-04-15 02:16:51 +02:00
|
|
|
//direct read from flash
|
|
|
|
int Flash_ReadFile(void *buf, int size, int readpos);
|