Changeset 4162 for branches/GRACE/src/win32k/dev16
- Timestamp:
- Sep 2, 2000, 10:49:29 PM (25 years ago)
- Location:
- branches/GRACE/src/win32k/dev16
- Files:
-
- 4 edited
-
SymDB.c (modified) (2 diffs)
-
d16init.c (modified) (7 diffs)
-
probkrnl.c (modified) (19 diffs)
-
vprntf16.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/GRACE/src/win32k/dev16/SymDB.c
r4117 r4162 1 /* $Id: SymDB.c,v 1.3.4. 6 2000-08-30 04:11:23bird Exp $1 /* $Id: SymDB.c,v 1.3.4.7 2000-09-02 20:49:06 bird Exp $ 2 2 * 3 3 * Autogenerated kernel symbol database. … … 12 12 #define INCL_NOBASEAPI 13 13 #include <os2.h> 14 #include "devSegDf.h" 14 15 #include "probkrnl.h" 15 16 #include "options.h" 16 17 17 KRNLDBENTRY aKrnlSymDB[] =18 KRNLDBENTRY DATA16_INIT aKrnlSymDB[] = 18 19 { 19 20 #ifdef ALLKERNELS -
branches/GRACE/src/win32k/dev16/d16init.c
r4117 r4162 1 /* $Id: d16init.c,v 1.6.4. 4 2000-08-30 04:11:26bird Exp $1 /* $Id: d16init.c,v 1.6.4.5 2000-09-02 20:49:09 bird Exp $ 2 2 * 3 3 * d16init - init routines for both drivers. … … 36 36 #include <memory.h> 37 37 38 #include "devSegDf.h" 39 #undef DATA16_INIT 40 #define DATA16_INIT 41 #undef CODE16_INIT 42 #define CODE16_INIT 38 43 #include "probkrnl.h" 39 44 #include "dev1632.h" … … 42 47 #include "log.h" 43 48 #include "options.h" 49 50 44 51 45 52 /** … … 66 73 67 74 pRpOut->BPBArray = NULL; 68 pRpOut->CodeEnd = (USHORT)&CODE16END;69 pRpOut->DataEnd = (USHORT)&DATA16END;75 pRpOut->CodeEnd = (USHORT)&CODE16_INITSTART; 76 pRpOut->DataEnd = (USHORT)&DATA16_INITSTART; 70 77 pRpOut->Unit = 0; 71 78 pRpOut->rph.Status = STATUS_DONE; … … 134 141 * Fill return data. 135 142 */ 136 pRpOut->CodeEnd = (USHORT)&CODE16 END;137 pRpOut->DataEnd = (USHORT)&DATA16 END;143 pRpOut->CodeEnd = (USHORT)&CODE16_INITSTART; 144 pRpOut->DataEnd = (USHORT)&DATA16_INITSTART; 138 145 pRpOut->BPBArray= NULL; 139 146 pRpOut->Unit = 0; … … 163 170 * @param pRp Generic IO Control request packet. 164 171 */ 165 USHORT NEAR R0Init16(PRP_GENIOCTL pRp)172 USHORT NEAR R0Init16(PRP_GENIOCTL pRp) 166 173 { 167 174 USHORT usRc = STATUS_DONE; … … 244 251 * (Since this is init code not present after init...) 245 252 */ 246 USHORT NEAR initGetDosTableData(void)253 USHORT NEAR initGetDosTableData(void) 247 254 { 248 255 APIRET rc; -
branches/GRACE/src/win32k/dev16/probkrnl.c
r4120 r4162 1 /* $Id: probkrnl.c,v 1.20.4.1 4 2000-08-30 04:45:58bird Exp $1 /* $Id: probkrnl.c,v 1.20.4.15 2000-09-02 20:49:10 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 61 61 #include <reqpkt.h> 62 62 63 #include "devSegDf.h" 64 #undef DATA16_INIT 65 #define DATA16_INIT 66 #undef CODE16_INIT 67 #define CODE16_INIT 63 68 #include "os2krnl.h" /* must be included before dev1632.h! */ 64 69 #include "sym.h" … … 75 80 * Note: must be inited or else we'll get BSS segment * 76 81 *******************************************************************************/ 77 /* 78 * kernel data - !only valid during init! 79 */ 82 80 83 81 84 /* … … 86 89 * calltab.asm has to be updated immediately! 87 90 */ 88 IMPORTKRNLSYM aImportTab[NBR_OF_KRNLIMPORTS] =91 IMPORTKRNLSYM DATA16_GLOBAL aImportTab[NBR_OF_KRNLIMPORTS] = 89 92 {/* iFound cchName offObject usSel fType */ 90 93 /* iObject achName ulAddress cProlog */ … … 134 137 }; 135 138 139 char DATA16_GLOBAL szUsrSym[50] = {0}; 140 141 136 142 137 143 /* … … 139 145 */ 140 146 #if defined(DEBUGR3) 141 static char szUsrOS2Krnl[50] = {0};142 static char szOS2Krnl[] = {"c:\\os2krnl"};147 static char DATA16_INIT szUsrOS2Krnl[50] = {0}; 148 static char DATA16_INIT szOS2Krnl[] = {"c:\\os2krnl"}; 143 149 #endif 144 static char szUsrSym[50] = {0}; 145 static char * apszSym[] = 150 static char * DATA16_INIT apszSym[] = 146 151 { 147 152 {"c:\\os2krnl.sym"}, /* usual for debugkernel */ … … 164 169 165 170 /* Result from GetKernelInfo/ReadOS2Krnl. */ 166 static unsigned char cObjects = 0;167 static POTE paKrnlOTEs = NULL;171 static unsigned char DATA16_INIT cObjects = 0; 172 static POTE DATA16_INIT paKrnlOTEs = NULL; 168 173 169 174 … … 175 180 short sErr; 176 181 const char *pszMsg; 177 } aErrorMsgs[] =182 } DATA16_INIT aErrorMsgs[] = 178 183 { 179 184 {ERROR_PROB_KRNL_OPEN_FAILED, "Krnl: Failed to open kernel file."}, … … 221 226 */ 222 227 #ifdef R3TST 223 USHORT usFakeVerMajor = 0;224 USHORT usFakeVerMinor = 0;228 USHORT DATA16_INIT usFakeVerMajor = 0; 229 USHORT DATA16_INIT usFakeVerMinor = 0; 225 230 #ifdef R3TST 226 static ach[11] = {0}; /* works around compiler/linker bug */231 static DATA16_INIT ach[11] = {0}; /* works around compiler/linker bug */ 227 232 #endif 228 233 #endif … … 265 270 static int processFile(const char *pszFilename); 266 271 272 #if 0 /*ndef CODE16_INIT*/ 273 #pragma alloc_text(CODE16_INIT, fopen, fread, fseek, fsize) 274 #pragma alloc_text(CODE16_INIT, kmemcpy, kstrstr, kstrcmp, kstrncmp, kstrnicmp, kstrlen, kstrcpy, kargncpy) 275 #pragma alloc_text(CODE16_INIT, GetErrorMsg) 276 #pragma alloc_text(CODE16_INIT, LookupKrnlEntry, VerifyPrologs, ProbeSymFile, GetKernelInfo) 277 #pragma alloc_text(CODE16_INIT, ShowResult) 278 #pragma alloc_text(CODE16_INIT, VerifyKernelVer, ReadOS2Krnl, ReadOS2Krnl2, processFile) 279 #endif 267 280 268 281 … … 490 503 while (*pszSource != '\0') 491 504 *psz++ = *pszSource++; 492 505 *psz = '\0'; 493 506 return pszTarget; 494 507 } … … 949 962 { 950 963 #if !defined(DEBUGR3) && !defined(EXTRACT) /* This IOCtl is not available after inittime! */ 951 static KRNLINFO KrnlInfo = {0};964 static KRNLINFO DATA16_INIT KrnlInfo = {0}; 952 965 APIRET rc; 953 966 HFILE hDev0 = 0; … … 1233 1246 ) 1234 1247 { 1235 #if ndef R3TST1248 #if 1 /* ndef R3TST */ 1236 1249 APIRET rc2; 1237 1250 /* search on disk */ … … 1245 1258 rc = rc2; 1246 1259 } 1260 if (rc == 1 || rc2 == NO_ERROR) 1261 rc = rc2; 1247 1262 #endif 1248 1263 } … … 1253 1268 dprintf(("rc=%d; i=%d\n", rc, i)); 1254 1269 ShowResult(rc, i); 1270 1271 /* Copy the symbol file name to szUsrSym. */ 1272 if (szUsrSym[0] == '\0' && apszSym[i] != NULL) 1273 kstrcpy(szUsrSym, apszSym[i]); 1255 1274 1256 1275 return rc; … … 1331 1350 { 1332 1351 #if defined(DEBUGR3) || !defined(EXTRACT) 1333 static KRNLINFO KrnlInfo = {0};1352 static KRNLINFO DATA16_INIT KrnlInfo = {0}; 1334 1353 #endif 1335 1354 int i, j; … … 1660 1679 * Set paKrnlOTEs to point to an zeroed array of OTEs. 1661 1680 */ 1662 static KRNLINFO KrnlInfo = {0};1681 static KRNLINFO DATA16_INIT KrnlInfo = {0}; 1663 1682 paKrnlOTEs = &KrnlInfo.aObjects[0]; 1664 1683 … … 1695 1714 int i; 1696 1715 1697 printf16("/* $Id: probkrnl.c,v 1.20.4.1 4 2000-08-30 04:45:58bird Exp $\n"1716 printf16("/* $Id: probkrnl.c,v 1.20.4.15 2000-09-02 20:49:10 bird Exp $\n" 1698 1717 "*\n" 1699 1718 "* Autogenerated kernel symbol database.\n" … … 1709 1728 "#define INCL_NOBASEAPI\n" 1710 1729 "#include <os2.h>\n" 1730 "#include \"DevSegDf.h\"\n" 1711 1731 "#include \"probkrnl.h\"\n" 1712 1732 "#include \"options.h\"\n" 1713 1733 "\n"); 1714 1734 1715 printf16("KRNLDBENTRY aKrnlSymDB[] = \n"1735 printf16("KRNLDBENTRY DATA16_INIT aKrnlSymDB[] = \n" 1716 1736 "{\n"); 1717 1737 -
branches/GRACE/src/win32k/dev16/vprntf16.c
r4017 r4162 1 /* $Id: vprntf16.c,v 1.2.4. 2 2000-08-15 06:16:00 bird Exp $1 /* $Id: vprntf16.c,v 1.2.4.3 2000-09-02 20:49:10 bird Exp $ 2 2 * 3 3 * vprintf and printf - 16-bit. … … 36 36 #include <os2.h> 37 37 38 #include "devSegDf.h" /* Win32k segment definitions. */ 39 #include "dev16.h" 38 40 #include "vprntf16.h" 39 41 #ifdef RING0 … … 41 43 #include "conio.h" 42 44 #endif 43 #include "dev16.h"44 45 45 46 /******************************************************************************* … … 218 219 * @param args Argument list. 219 220 */ 220 int vprintf16(const char *pszFormat, va_list args)221 int FAR vprintf16(const char *pszFormat, va_list args) 221 222 { 222 223 int cch = 0; … … 392 393 * @param ... Optional parameters. 393 394 */ 394 int printf16(const char *pszFormat, ...)395 int FAR printf16(const char *pszFormat, ...) 395 396 { 396 397 int cch;
Note:
See TracChangeset
for help on using the changeset viewer.
