summaryrefslogtreecommitdiff
path: root/rts/sm/OSMem.h
blob: 92fe350045c6503471469c43dfa03cae94c986fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* -----------------------------------------------------------------------------
 *
 * (c) The University of Glasgow 2006-2008
 *
 * OS-specific memory management
 *
 * ---------------------------------------------------------------------------*/

#ifndef SM_OSMEM_H
#define SM_OSMEM_H

#pragma GCC visibility push(hidden)

void osMemInit(void);
void *osGetMBlocks(nat n);
void osFreeAllMBlocks(void);
lnat getPageSize (void);
void setExecutable (void *p, lnat len, rtsBool exec);

#pragma GCC visibility pop

#endif /* SM_OSMEM_H */