Changeset 1535 for trunk/src/win32k/dev16
- Timestamp:
- Nov 1, 1999, 12:57:09 AM (26 years ago)
- Location:
- trunk/src/win32k/dev16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/dev16/d16init.c
r1467 r1535 1 /* $Id: d16init.c,v 1. 2 1999-10-27 02:02:53bird Exp $1 /* $Id: d16init.c,v 1.3 1999-10-31 23:57:00 bird Exp $ 2 2 * 3 3 * d16init - init routines for both drivers. … … 94 94 else 95 95 { 96 /* FIXME quiet test! */ 96 97 register NPSZ npsz = "Win32k.sys succesfully initiated!\n\r"; 97 98 DosPutMessage(1, strlen(npsz)+1, npsz); -
trunk/src/win32k/dev16/probkrnl.c
r1467 r1535 1 /* $Id: probkrnl.c,v 1. 2 1999-10-27 02:02:53bird Exp $1 /* $Id: probkrnl.c,v 1.3 1999-10-31 23:57:01 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 6 6 * 16-bit inittime code. 7 7 * 8 * All data has to be initiated because this file is to be compiled into assembly, 9 * automaticly modified and run thru an assembler to produce an object-file. This 10 * because there is no other known way to combine 32-bit and 16-bit C/C++ code into 11 * the same device driver which works. 8 * All data has to be initiated because this is 16-bit C code 9 * and is to be linked with 32-bit C/C++ code. Uninitiazlied 10 * data ends up in the BSS segment, and that segment can't 11 * both be 32-bit and 16-bit. I have not found any other way 12 * around this problem that initiating all data. 12 13 * 13 14 * How this works: … … 86 87 }; 87 88 88 unsigned long int fInitSuccess = 0;89 89 unsigned long int ulBuild = 0; 90 90 unsigned short usVerMajor = 0; … … 96 96 */ 97 97 static int fQuiet = 0; 98 99 98 static char szUsrOS2Krnl[50] = {0}; 100 99 static char szOS2Krnl[] = {"c:\\os2krnl"}; … … 917 916 /** 918 917 * "main" function. 918 * Note that the option -Noloader causes nothing to be done. 919 919 * @returns 0 on success, something else on error. 920 920 * @param pReqPack Pointer to init request packet 921 921 * @remark 922 * @result init_success923 922 */ 924 923 int ProbeKernel(PRPINITIN pReqPack) … … 943 942 { 944 943 i++; 945 if (pReqPack->InitArgs[i] == 'V' || pReqPack->InitArgs[i] == 'v') 946 fQuiet = 0; 947 else if (pReqPack->InitArgs[i] == 'Q' || pReqPack->InitArgs[i] == 'q') 948 fQuiet = 1; 949 else if (pReqPack->InitArgs[i] == 'K' || pReqPack->InitArgs[i] == 'k') 950 { /* kernel file */ 951 i++; 952 i += kargncpy(szUsrOS2Krnl, &pReqPack->InitArgs[i], sizeof(szUsrOS2Krnl)); 953 } 954 else if (pReqPack->InitArgs[i] == 'S' || pReqPack->InitArgs[i] == 's') 955 { /* symbol file */ 956 i++; 957 i += kargncpy(szUsrSym, &pReqPack->InitArgs[i], sizeof(szUsrSym)); 944 switch (pReqPack->InitArgs[i]) 945 { 946 case 'k': 947 case 'K': /* Kernel file */ 948 i++; 949 i += kargncpy(szUsrOS2Krnl, &pReqPack->InitArgs[i], sizeof(szUsrOS2Krnl)); 950 break; 951 952 case 'n': 953 case 'N': /* NoLoader */ 954 return 0; 955 956 case 'q': 957 case 'Q': /* Quiet */ 958 fQuiet = 1; 959 break; 960 961 case 's': 962 case 'S': /* Symbol file */ 963 i++; 964 i += kargncpy(szUsrSym, &pReqPack->InitArgs[i], sizeof(szUsrSym)); 965 break; 966 967 case 'v': 968 case 'V': /* Verbose */ 969 fQuiet = 0; 970 break; 958 971 } 959 972 } … … 1029 1042 dprintf(("rc=%d; i=%d\n", rc, i)); 1030 1043 ShowResult(rc, i); 1031 fInitSuccess = rc = 0;1032 1044 1033 1045 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.