Ignore:
Timestamp:
Apr 5, 2000, 8:40:42 PM (26 years ago)
Author:
bird
Message:

Support for Warp 4 Fixpack 13 in symbol database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/dev16/probkrnl.c

    r2931 r3321  
    1 /* $Id: probkrnl.c,v 1.18 2000-02-27 12:37:53 bird Exp $
     1/* $Id: probkrnl.c,v 1.19 2000-04-05 18:40:38 bird Exp $
    22 *
    33 * Description:   Autoprobes the os2krnl file and os2krnl[*].sym files.
     
    100100    {FALSE, -1, 11, "_VMAllocMem",          -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 11 */
    101101    {FALSE, -1, 11, "_VMGetOwner",          -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 12 */
    102     {FALSE, -1, 11, "g_tkExecPgm",          -1,  -1,  -1,  -1, EPT_PROC32},        /* 13 */ /* currently disabled! */
     102    {FALSE, -1, 11, "g_tkExecPgm",          -1,  -1,  -1,  -1, EPT_PROC32},        /* 13 */
    103103    {FALSE, -1, 11, "f_FuStrLenZ",          -1,  -1,  -1,  -1, EPT_PROCIMPORT16},  /* 14 */
    104104    {FALSE, -1, 10, "f_FuStrLen",           -1,  -1,  -1,  -1, EPT_PROCIMPORT16},  /* 14 */
     
    110110unsigned short      usVerMajor       = 0;
    111111unsigned short      usVerMinor       = 0;
    112 unsigned char       fSMP             = FALSE;
     112unsigned char       fchType          = TYPE_UNI;        /* TYPE_SMP, TYPE_UNI, TYPE_W4 */
    113113unsigned char       fDebug           = FALSE;
    114114
     
    170170/* Workers */
    171171static int      LookupKrnlEntry(unsigned uBuild, unsigned char chType,
    172                                 unsigned char fSMP, unsigned char cObjects);
     172                                unsigned char fchType, unsigned char cObjects);
    173173static int      VerifyPrologs(void);
    174174static int      ProbeSymFile(const char *pszFilename);
     
    492492 *            1 if not found.
    493493 *            Error code on error.
    494  * @param     uBuild    Build level.
    495  * @param     chType    'A' all strict
    496  *                      'H' half strict
    497  *                      'R' retail
    498  * @param     fSMP      TRUE: SMP
    499  *                      FALSE: UNI
    500  * @param     cObjects  Count of object in the running kernel.
     494 * @param     uBuild        Build level.
     495 * @param     fchBldType    'A' all strict
     496 *                          'H' half strict
     497 *                          'R' retail
     498 * @param     fchType       TYPE_SMP, TYPE_UNI, TYPE_W4
     499 * @param     cObjects      Count of object in the running kernel.
    501500 * @sketch    Loop thru the table.
    502501 * @status    completely implemented.
    503502 * @author    knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
    504503 */
    505 static int LookupKrnlEntry(unsigned uBuild, unsigned char chType, unsigned char fSMP, unsigned char cObjects)
     504static int LookupKrnlEntry(unsigned uBuild, unsigned char fchBldType, unsigned char fchType, unsigned char cObjects)
    506505{
    507506    int i;
     
    512511    for (i = 0; aKrnlSymDB[i].usBuild != 0; i++)
    513512    {
    514         if (aKrnlSymDB[i].usBuild      == uBuild
    515             && aKrnlSymDB[i].chType    == chType
    516             && aKrnlSymDB[i].fSMP      == fSMP
    517             && aKrnlSymDB[i].cObjects  == cObjects)
     513        if (aKrnlSymDB[i].usBuild       == uBuild
     514            && aKrnlSymDB[i].fchBldType == fchBldType
     515            && aKrnlSymDB[i].fchType    == fchType
     516            && aKrnlSymDB[i].cObjects   == cObjects)
    518517        {   /* found matching entry! */
    519518            int j;
     
    867866            /* Set the exported parameters */
    868867            usBuild  = KrnlInfo.usBuild;
    869             fSMP     = KrnlInfo.fSMP;
     868            fchType  = KrnlInfo.fchType;
    870869            fDebug   = KrnlInfo.fDebug;
    871870            cObjects = KrnlInfo.cObjects;
     
    891890#else
    892891    #ifndef EXTRACT
    893         APIRET          rc;
     892        APIRET  rc;
    894893
    895894        /*--------------*/
     
    10821081             */
    10831082            if (fDebug ||
    1084                 (rc = LookupKrnlEntry((unsigned short)usBuild, 'R', fSMP, cObjects)) != 0
     1083                (rc = LookupKrnlEntry((unsigned short)usBuild, 'R', fchType, cObjects)) != 0
    10851084                )
    10861085            {
     
    13881387        || !(pszFilename[cch-7] >= '0' && pszFilename[cch-7] <= '9')
    13891388        || !(pszFilename[cch-6] == 'A' || pszFilename[cch-6] == 'H' || pszFilename[cch-6] == 'R')
    1390         || !(pszFilename[cch-5] == 'S' || pszFilename[cch-5] == 'U')
     1389        || !(pszFilename[cch-5] == 'S' || pszFilename[cch-5] == 'U' || pszFilename[cch-5] == '4')
    13911390        )
    13921391    {
     
    14211420                 "        {\n",
    14221421                 pszFilename,
    1423                  cch - 6, &pszFilename[0],                       /* build number */
    1424                  pszFilename[cch - 6],                           /* Type, A=astrict, H=halfstrict, R=Retail */
    1425                  pszFilename[cch - 5] == 'S' ? "TRUE" : "FALSE", /* UNI: TRUE  SMP: FALSE */
     1422                 cch - 6, &pszFilename[0],              /* build number */
     1423                 pszFilename[cch - 6],                  /* Type, A=astrict, H=halfstrict, R=Retail */
     1424                 pszFilename[cch - 5] == 'S' ?          /* UNI: TYPE_UNI  SMP: TYPE_SMP  W4: TYPE_W4 */
     1425                    "TYPE_SMP" :  pszFilename[cch - 5] == '4' ? "TYPE_W4" : "TYPE_UNI",
    14261426                 aImportTab[0].iObject + 1); /* ASSUMES that DOSCODE32 is the last object. */
    14271427
     
    14571457{
    14581458    APIRET  rc;
     1459
     1460
     1461    /*
     1462     * Set paKrnlOTEs to point to an zeroed array of OTEs.
     1463     */
     1464    static KRNLINFO KrnlInfo = {0};
     1465    paKrnlOTEs = &KrnlInfo.aObjects[0];
    14591466
    14601467    if (argc > 1)
     
    14881495        int         i;
    14891496
    1490         printf16("/* $Id: probkrnl.c,v 1.18 2000-02-27 12:37:53 bird Exp $\n"
     1497        printf16("/* $Id: probkrnl.c,v 1.19 2000-04-05 18:40:38 bird Exp $\n"
    14911498                 "*\n"
    14921499                 "* Autogenerated kernel symbol database.\n"
Note: See TracChangeset for help on using the changeset viewer.