blob: e5c97ecceabba25ae9d7f27a5afb6b755c9fe4a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* -----------------------------------------------------------------------------
*
* (c) The University of Glasgow 2006-2008
*
* OS-specific memory management
*
* ---------------------------------------------------------------------------*/
#ifndef SM_OSMEM_H
#define SM_OSMEM_H
#include "BeginPrivate.h"
void osMemInit(void);
void *osGetMBlocks(nat n);
void osFreeMBlocks(char *addr, nat n);
void osReleaseFreeMemory(void);
void osFreeAllMBlocks(void);
W_ getPageSize (void);
StgWord64 getPhysicalMemorySize (void);
void setExecutable (void *p, W_ len, rtsBool exec);
#include "EndPrivate.h"
#endif /* SM_OSMEM_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
|