1 /* $Id: segmem.h,v 1.3 1993/07/04 04:04:21 root Exp root $
4 * Copyright Robert J. Amstadt, 1993
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 */
24 #define NE_SEGFLAGS_MALLOCED 0x00010000 /* Memory allocated with malloc() */
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