Ignore:
Timestamp:
Jan 24, 2000, 7:19:01 PM (26 years ago)
Author:
bird
Message:

Heapchanges: Heap is splitted into a swappable and a resident. The heaps
are dynamically growable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/include/options.h

    r2501 r2511  
    1 /* $Id: options.h,v 1.5 2000-01-22 18:21:01 bird Exp $
     1/* $Id: options.h,v 1.6 2000-01-24 18:18:59 bird Exp $
    22 *
    33 * Options.
     
    3232#define INFOLEVEL_INFOALL    0x00000004UL
    3333
     34/* default heapsizes */
     35#define CB_SWP_INIT         (1024*512)
     36#define CB_SWP_MAX          (1024*1024*16)
     37#define CB_RES_INIT         (1024*256)
     38#define CB_RES_MAX          (1024*1024*10)
     39
     40
    3441/* Set defaults. */
    35 #define SET_OPTIONS_TO_DEFAULT(o)                       \
    36             o.fQuiet      = FALSE;                      \
    37             o.usCom       = OUTPUT_COM2;                \
    38             o.fLogging    = FALSE;                      \
    39             o.fKernel     = KF_UNI;                     \
    40             o.ulBuild     = ~0UL;                       \
    41             o.usVerMajor  = (unsigned short)~0;         \
    42             o.usVerMinor  = (unsigned short)~0;         \
    43             o.fPE         = FLAGS_PE_PE2LX;             \
    44             o.ulInfoLevel = INFOLEVEL_QUIET;            \
    45             o.fElf        = FALSE;                      \
    46             o.fScript     = FALSE;                      \
    47             o.fNoLoader   = FALSE;                      \
    48             o.cbHeap      = 0x100000; /* 1MB */         \
    49             o.cbHeapMax   = 0x100000; /* 1MB */         \
    50             o.cbHeapResident    = 0x10000; /* 64KB */   \
    51             o.cbHeapMaxResident = 0x1000;  /* 4KB */    \
     42#define SET_OPTIONS_TO_DEFAULT(o)                   \
     43            o.fQuiet        = FALSE;                \
     44            o.usCom         = OUTPUT_COM2;          \
     45            o.fLogging      = FALSE;                \
     46            o.fKernel       = KF_UNI;               \
     47            o.ulBuild       = ~0UL;                 \
     48            o.usVerMajor    = (unsigned short)~0;   \
     49            o.usVerMinor    = (unsigned short)~0;   \
     50            o.fPE           = FLAGS_PE_PE2LX;       \
     51            o.ulInfoLevel   = INFOLEVEL_QUIET;      \
     52            o.fElf          = FALSE;                \
     53            o.fScript       = FALSE;                \
     54            o.fNoLoader     = FALSE;                \
     55            o.cbSwpHeapInit = CB_SWP_INIT;          \
     56            o.cbSwpHeapMax  = CB_SWP_MAX;           \
     57            o.cbResHeapInit = CB_RES_INIT;          \
     58            o.cbResHeapMax  = CB_RES_MAX;
    5259
    5360
     
    5966{
    6067    /** @cat misc */
    61     BOOL        fQuiet;              /* Quiet initialization. */
     68    BOOL        fQuiet;                 /* Quiet initialization. */
    6269
    6370    /** @cat logging options */
    64     USHORT      usCom;               /* Output port no. */
    65     BOOL        fLogging;            /* Logging. */
     71    USHORT      usCom;                  /* Output port no. */
     72    BOOL        fLogging;               /* Logging. */
    6673
    6774    /** @cat kernel selection */
    68     ULONG       fKernel;            /* Smp or uni kernel. */
    69     ULONG       ulBuild;            /* Kernel build. */
    70     USHORT      usVerMajor;         /* OS/2 major ver - 20 */
    71     USHORT      usVerMinor;         /* OS/2 minor ver - 30,40 */
     75    ULONG       fKernel;                /* Smp or uni kernel. */
     76    ULONG       ulBuild;                /* Kernel build. */
     77    USHORT      usVerMajor;             /* OS/2 major ver - 20 */
     78    USHORT      usVerMinor;             /* OS/2 minor ver - 30,40 */
    7279
    7380    /** @cat Options affecting the generated LX executables */
    74     BOOL        fPE;                /* Flags set the type of conversion. */
    75     ULONG       ulInfoLevel;        /* Pe2Lx InfoLevel. */
     81    BOOL        fPE;                    /* Flags set the type of conversion. */
     82    ULONG       ulInfoLevel;            /* Pe2Lx InfoLevel. */
    7683
    7784    /** @cat Options affecting the generated ELF executables */
    78     BOOL        fElf;               /* Elf flags. */
     85    BOOL        fElf;                   /* Elf flags. */
    7986
    8087    /** @cat Options affecting the script executables */
    81     BOOL        fScript;            /* Script flags. */
     88    BOOL        fScript;                /* Script flags. */
    8289
    8390    /** @cat Options affecting the script executables */
    84     BOOL        fNoLoader;          /* No loader stuff. */
     91    BOOL        fNoLoader;              /* No loader stuff. */
    8592
    8693    /** @cat Options affecting the heap. */
    87     ULONG       cbHeap;             /* Initial heapsize. */
    88     ULONG       cbHeapMax;          /* Maximum heapsize. */
    89     ULONG       cbHeapResident;     /* Initial residentheapsize. */
    90     ULONG       cbHeapMaxResident;  /* Maxiumem residentheapsize. */
     94    ULONG       cbSwpHeapInit;          /* Initial heapsize. */
     95    ULONG       cbSwpHeapMax;           /* Maximum heapsize. */
     96    ULONG       cbResHeapInit;          /* Initial residentheapsize. */
     97    ULONG       cbResHeapMax;           /* Maxiumem residentheapsize. */
    9198};
    9299
     
    95102*   Global Variables                                                           *
    96103*******************************************************************************/
    97 extern struct options options; /* defined in d32globals.c */
     104extern struct options options;          /* defined in d32globals.c */
    98105
    99106#endif
Note: See TracChangeset for help on using the changeset viewer.