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

Symbol Database is implemented.
No scanning of the os2krnl file, the loaded image is now scaned to determin
which build, debug/retail and smp/uni.
And yet some more enhanchments like 16-bit logging.

File:
1 edited

Legend:

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

    r2849 r2898  
    1 /* $Id: options.h,v 1.9 2000-02-21 15:59:21 bird Exp $
     1/* $Id: options.h,v 1.10 2000-02-25 18:15:06 bird Exp $
    22 *
    33 * Options.
     
    1616*******************************************************************************/
    1717/* fKernel */
    18 #define KF_UNI      0x00000000UL
    19 #define KF_SMP      0x00000001UL
     18#define KF_UNI              0x00000000UL
     19#define KF_SMP              0x00000001UL
    2020
    2121/* fPE */
     
    2626
    2727/* ulInfoLevel */
    28 #define INFOLEVEL_QUIET      0x00000000UL
    29 #define INFOLEVEL_ERROR      0x00000001UL
    30 #define INFOLEVEL_WARNING    0x00000002UL
    31 #define INFOLEVEL_INFO       0x00000003UL
    32 #define INFOLEVEL_INFOALL    0x00000004UL
     28#define INFOLEVEL_QUIET     0x00000000UL
     29#define INFOLEVEL_ERROR     0x00000001UL
     30#define INFOLEVEL_WARNING   0x00000002UL
     31#define INFOLEVEL_INFO      0x00000003UL
     32#define INFOLEVEL_INFOALL   0x00000004UL
    3333
    3434/* 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)
     35#define CB_SWP_INIT         (1024*512)      /* 512KB */
     36#define CB_SWP_MAX          (1024*1024*16)  /*  16MB  */
     37#define CB_RES_INIT         (1024*256)      /* 256KB */
     38#define CB_RES_MAX          (1024*1024*10)  /*  10MB  */
    3939
     40/* default assignments */
     41#define DEFAULT_OPTION_ASSIGMENTS                           \
     42            {FALSE,                 /* fQuiet        */     \
     43            OUTPUT_COM2,            /* usCom         */     \
     44            FALSE,                  /* fLogging      */     \
     45            KF_UNI,                 /* fKernel       */     \
     46            ~0UL,                   /* ulBuild       */     \
     47            (unsigned short)~0,     /* usVerMajor    */     \
     48            (unsigned short)~0,     /* usVerMinor    */     \
     49            FLAGS_PE_PE2LX,         /* fPE           */     \
     50            INFOLEVEL_QUIET,        /* ulInfoLevel   */     \
     51            FALSE,                  /* fElf          */     \
     52            TRUE,                   /* fScript       */     \
     53            FALSE,                  /* fNoLoader     */     \
     54            CB_SWP_INIT,            /* cbSwpHeapInit */     \
     55            CB_SWP_MAX,             /* cbSwpHeapMax  */     \
     56            CB_RES_INIT,            /* cbResHeapInit */     \
     57            CB_RES_MAX}             /* cbResHeapMax  */
    4058
    41 /* Set defaults. */
    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       = TRUE;                 \
    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;
    5959
    6060
     
    6363*******************************************************************************/
    6464/** Option struct */
     65#pragma pack(4)
    6566struct options
    6667{
    6768    /** @cat misc */
    68     BOOL        fQuiet;                 /* Quiet initialization. */
     69    ULONG       fQuiet;                 /* Quiet initialization. */
    6970
    7071    /** @cat logging options */
    7172    USHORT      usCom;                  /* Output port no. */
    72     BOOL        fLogging;               /* Logging. */
     73    ULONG       fLogging;               /* Logging. */
    7374
    7475    /** @cat kernel selection */
     
    7980
    8081    /** @cat Options affecting the generated LX executables */
    81     BOOL        fPE;                    /* Flags set the type of conversion. */
     82    ULONG       fPE;                    /* Flags set the type of conversion. */
    8283    ULONG       ulInfoLevel;            /* Pe2Lx InfoLevel. */
    8384
    8485    /** @cat Options affecting the generated ELF executables */
    85     BOOL        fElf;                   /* Elf flags. */
     86    ULONG       fElf;                   /* Elf flags. */
    8687
    8788    /** @cat Options affecting the script executables */
    88     BOOL        fScript;                /* Script flags. */
     89    ULONG       fScript;                /* Script flags. */
    8990
    9091    /** @cat Options affecting the script executables */
    91     BOOL        fNoLoader;              /* No loader stuff. */
     92    ULONG       fNoLoader;              /* No loader stuff. */
    9293
    9394    /** @cat Options affecting the heap. */
     
    9798    ULONG       cbResHeapMax;           /* Maxiumem residentheapsize. */
    9899};
     100#pragma pack()
     101
    99102
    100103/*******************************************************************************
    101104*   Global Variables                                                           *
    102105*******************************************************************************/
    103 extern struct options options;          /* defined in d32globals.c */
     106extern struct options options;      /* defined in d32globals.c */
     107#if defined(__IBMC__) || defined(__IBMCPP__)
     108    #pragma map( options , "_options"  )
     109#endif
    104110
    105111#endif
Note: See TracChangeset for help on using the changeset viewer.