summaryrefslogtreecommitdiff
path: root/include/rvl/OS/OSAlloc.h
blob: 6e2ddb5c92437a000634c5d87c82a0d258a6d977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef RVL_SDK_OS_ALLOC_H
#define RVL_SDK_OS_ALLOC_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif

extern volatile s32 __OSCurrHeap;

void *OSAllocFromHeap(s32 handle, s32 size);
void OSFreeToHeap(s32 handle, void *p);
s32 OSSetCurrentHeap(s32 handle);
void *OSInitAlloc(void *start, void *end, s32 numHeaps);
s32 OSCreateHeap(void *start, void *end);

#ifdef __cplusplus
}
#endif
#endif