Release 0.1.0
[wine/hacks.git] / segmem.h
blob5775cdc4b5da62e5c524e617cb27a0a6faa1d6bb
1 /* $Id: segmem.h,v 1.3 1993/07/04 04:04:21 root Exp root $
2 */
3 /*
4 * Copyright Robert J. Amstadt, 1993
5 */
6 #ifndef SEGMEM_H
7 #define SEGMEM_H
9 /*
10 * Structure to hold info about each selector we create.
13 struct segment_descriptor_s
15 void *base_addr; /* Pointer to segment in flat memory */
16 unsigned int length; /* Length of segment */
17 unsigned int flags; /* Segment flags (see neexe.h and below)*/
18 unsigned short selector; /* Selector used to access this segment */
22 * Additional flags
24 #define NE_SEGFLAGS_MALLOCED 0x00010000 /* Memory allocated with malloc() */
27 * Global memory flags
29 #define GLOBAL_FLAGS_MOVEABLE 0x0002
30 #define GLOBAL_FLAGS_ZEROINIT 0x0040
31 #define GLOBAL_FLAGS_CODE 0x00010000
32 #define GLOBAL_FLAGS_EXECUTEONLY 0x00020000
33 #define GLOBAL_FLAGS_READONLY 0x00020000
35 #endif /* SEGMEM_H */