summaryrefslogtreecommitdiffstats
path: root/runtime/user/alloc.c
blob: 9ba720ab90f2cf9222cc3e47434e09ede01bebce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _ALLOC_C_
#define _ALLOC_C_

/* emulated memory allocation functions */

void *malloc(size_t size);
void free(void *ptr);

enum errorcode { ERR_NONE=0, ERR_NO_MEM };
enum errorcode _stp_errorcode = ERR_NONE;

void *__kmalloc(size_t size, gfp_t flags)
{
  return malloc(size);
}

#endif /* _ALLOC_C_ */