URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
199 |
simons |
#ifndef __ALPHA_MMAN_H__
|
2 |
|
|
#define __ALPHA_MMAN_H__
|
3 |
|
|
|
4 |
|
|
#define PROT_READ 0x1 /* page can be read */
|
5 |
|
|
#define PROT_WRITE 0x2 /* page can be written */
|
6 |
|
|
#define PROT_EXEC 0x4 /* page can be executed */
|
7 |
|
|
#define PROT_NONE 0x0 /* page can not be accessed */
|
8 |
|
|
|
9 |
|
|
#define MAP_SHARED 0x01 /* Share changes */
|
10 |
|
|
#define MAP_PRIVATE 0x02 /* Changes are private */
|
11 |
|
|
#define MAP_TYPE 0x0f /* Mask for type of mapping (OSF/1 is _wrong_) */
|
12 |
|
|
#define MAP_FIXED 0x100 /* Interpret addr exactly */
|
13 |
|
|
#define MAP_ANONYMOUS 0x10 /* don't use a file */
|
14 |
|
|
|
15 |
|
|
/* not used by linux, but here to make sure we don't clash with OSF/1 defines */
|
16 |
|
|
#define MAP_HASSEMAPHORE 0x0200
|
17 |
|
|
#define MAP_INHERIT 0x0400
|
18 |
|
|
#define MAP_UNALIGNED 0x0800
|
19 |
|
|
|
20 |
|
|
/* These are linux-specific */
|
21 |
|
|
#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
|
22 |
|
|
#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
|
23 |
|
|
#define MAP_EXECUTABLE 0x4000 /* mark it as a executable */
|
24 |
|
|
#define MAP_LOCKED 0x8000 /* lock the mapping */
|
25 |
|
|
|
26 |
|
|
#define MS_ASYNC 1 /* sync memory asynchronously */
|
27 |
|
|
#define MS_SYNC 2 /* synchronous memory sync */
|
28 |
|
|
#define MS_INVALIDATE 4 /* invalidate the caches */
|
29 |
|
|
|
30 |
|
|
#define MCL_CURRENT 8192 /* lock all currently mapped pages */
|
31 |
|
|
#define MCL_FUTURE 16384 /* lock all additions to address space */
|
32 |
|
|
|
33 |
|
|
/* compatibility flags */
|
34 |
|
|
#define MAP_ANON MAP_ANONYMOUS
|
35 |
|
|
#define MAP_FILE 0
|
36 |
|
|
|
37 |
|
|
#endif /* __ALPHA_MMAN_H__ */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.