Changeset 3321 for trunk/src/win32k/dev16/probkrnl.c
- Timestamp:
- Apr 5, 2000, 8:40:42 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/dev16/probkrnl.c
r2931 r3321 1 /* $Id: probkrnl.c,v 1.1 8 2000-02-27 12:37:53bird Exp $1 /* $Id: probkrnl.c,v 1.19 2000-04-05 18:40:38 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 100 100 {FALSE, -1, 11, "_VMAllocMem", -1, -1, -1, -1, EPT_PROCIMPORT32}, /* 11 */ 101 101 {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 */ 103 103 {FALSE, -1, 11, "f_FuStrLenZ", -1, -1, -1, -1, EPT_PROCIMPORT16}, /* 14 */ 104 104 {FALSE, -1, 10, "f_FuStrLen", -1, -1, -1, -1, EPT_PROCIMPORT16}, /* 14 */ … … 110 110 unsigned short usVerMajor = 0; 111 111 unsigned short usVerMinor = 0; 112 unsigned char f SMP = FALSE;112 unsigned char fchType = TYPE_UNI; /* TYPE_SMP, TYPE_UNI, TYPE_W4 */ 113 113 unsigned char fDebug = FALSE; 114 114 … … 170 170 /* Workers */ 171 171 static int LookupKrnlEntry(unsigned uBuild, unsigned char chType, 172 unsigned char f SMP, unsigned char cObjects);172 unsigned char fchType, unsigned char cObjects); 173 173 static int VerifyPrologs(void); 174 174 static int ProbeSymFile(const char *pszFilename); … … 492 492 * 1 if not found. 493 493 * 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. 501 500 * @sketch Loop thru the table. 502 501 * @status completely implemented. 503 502 * @author knut st. osmundsen (knut.stange.osmundsen@pmsc.no) 504 503 */ 505 static int LookupKrnlEntry(unsigned uBuild, unsigned char chType, unsigned char fSMP, unsigned char cObjects)504 static int LookupKrnlEntry(unsigned uBuild, unsigned char fchBldType, unsigned char fchType, unsigned char cObjects) 506 505 { 507 506 int i; … … 512 511 for (i = 0; aKrnlSymDB[i].usBuild != 0; i++) 513 512 { 514 if (aKrnlSymDB[i].usBuild == uBuild515 && aKrnlSymDB[i]. chType == chType516 && aKrnlSymDB[i].f SMP == fSMP517 && 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) 518 517 { /* found matching entry! */ 519 518 int j; … … 867 866 /* Set the exported parameters */ 868 867 usBuild = KrnlInfo.usBuild; 869 f SMP = KrnlInfo.fSMP;868 fchType = KrnlInfo.fchType; 870 869 fDebug = KrnlInfo.fDebug; 871 870 cObjects = KrnlInfo.cObjects; … … 891 890 #else 892 891 #ifndef EXTRACT 893 APIRET 892 APIRET rc; 894 893 895 894 /*--------------*/ … … 1082 1081 */ 1083 1082 if (fDebug || 1084 (rc = LookupKrnlEntry((unsigned short)usBuild, 'R', f SMP, cObjects)) != 01083 (rc = LookupKrnlEntry((unsigned short)usBuild, 'R', fchType, cObjects)) != 0 1085 1084 ) 1086 1085 { … … 1388 1387 || !(pszFilename[cch-7] >= '0' && pszFilename[cch-7] <= '9') 1389 1388 || !(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') 1391 1390 ) 1392 1391 { … … 1421 1420 " {\n", 1422 1421 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", 1426 1426 aImportTab[0].iObject + 1); /* ASSUMES that DOSCODE32 is the last object. */ 1427 1427 … … 1457 1457 { 1458 1458 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]; 1459 1466 1460 1467 if (argc > 1) … … 1488 1495 int i; 1489 1496 1490 printf16("/* $Id: probkrnl.c,v 1.1 8 2000-02-27 12:37:53bird Exp $\n"1497 printf16("/* $Id: probkrnl.c,v 1.19 2000-04-05 18:40:38 bird Exp $\n" 1491 1498 "*\n" 1492 1499 "* Autogenerated kernel symbol database.\n"
Note:
See TracChangeset
for help on using the changeset viewer.