Changeset 1535 for trunk/src/win32k/dev32/d32init.c
- Timestamp:
- Nov 1, 1999, 12:57:09 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/dev32/d32init.c
r1467 r1535 1 /* $Id: d32init.c,v 1. 2 1999-10-27 02:02:54bird Exp $1 /* $Id: d32init.c,v 1.3 1999-10-31 23:57:02 bird Exp $ 2 2 * 3 3 * d32init.c - 32-bits init routines. … … 89 89 switch (*pszTmp) 90 90 { 91 case 'c': 91 92 case 'C': /* -C[1|2] - com-port no, def:-C2 */ 92 93 switch (pszTmp[1]) … … 102 103 break; 103 104 105 case 'e': 106 case 'E':/* ELF */ 107 pszTmp2 = strpbrk(pszTmp, ":=/- "); 108 if (pszTmp2 != NULL && (int)(pszTmp2-pszTmp) < cch-1 109 && (pszTmp2[1] == 'N' ||pszTmp2[1] == 'n' || pszTmp2[1] == 'D' || pszTmp2[1] == 'd') 110 ) 111 options.fElf = FALSE; 112 else 113 options.fElf = TRUE; 114 break; 115 116 case 'l': 104 117 case 'L': /* -L[..]<:|=| >[<Y..|E..| > | <N..|D..>] */ 105 118 pszTmp2 = strpbrk(pszTmp, ":=/- "); … … 112 125 break; 113 126 114 127 case 'n': 128 case 'N': /* NoLoader */ 129 options.fNoLoader = TRUE; 130 break; 131 132 case 'p': 133 case 'P': /* PE */ 134 pszTmp2 = strpbrk(pszTmp, ":=/- "); 135 if (pszTmp2 != NULL && (*pszTmp == ':' || *pszTmp == '=')) 136 { 137 pszTmp++; 138 if (strnicmp(pszTmp, "pe2lx", 5) == 0) 139 options.fPE = FLAGS_PE_PE2LX; 140 else if (strnicmp(pszTmp, "pe", 2) == 0) 141 options.fPE = FLAGS_PE_PE; 142 else if (strnicmp(pszTmp, "mixed", 2) == 0) 143 options.fPE = FLAGS_PE_MIXED; 144 else if (strnicmp(pszTmp, "not", 2) == 0) 145 options.fPE = FLAGS_PE_NOT; 146 else 147 kprintf(("R0Init32: invalid parameter -PE:...\n")); 148 } 149 else 150 kprintf(("R0Init32: invalid parameter -PE...\n")); 151 break; 152 153 case 'q': 115 154 case 'Q': /* quiet initialization */ 116 155 options.fQuiet = TRUE; 117 156 break; 118 157 158 case 's': 119 159 case 'S': /* SMP kernel */ 120 160 options.fKernel = KF_SMP; 121 161 break; 122 162 163 case 'v': 123 164 case 'V': /* verbose initialization */ 124 165 options.fQuiet = FALSE; 125 166 break; 126 167 168 case 'u': 127 169 case 'U': /* UNI kernel */ 128 170 options.fKernel = KF_SMP; … … 161 203 */ 162 204 /* heap */ 163 if (heapInit( HEAP_SIZE) != NO_ERROR)205 if (heapInit(options.cbHeap) != NO_ERROR) 164 206 return STATUS_DONE | STERR | ERROR_I24_QUIET_INIT_FAIL; 165 207 166 208 /* loader */ 167 if (ldrInit() != NO_ERROR) 168 return STATUS_DONE | STERR | ERROR_I24_QUIET_INIT_FAIL; 209 if (!options.fNoLoader) 210 if (ldrInit() != NO_ERROR) 211 return STATUS_DONE | STERR | ERROR_I24_QUIET_INIT_FAIL; 169 212 170 213 /* functionoverrides */ 171 if (procInit() != NO_ERROR) 172 return STATUS_DONE | STERR | ERROR_I24_QUIET_INIT_FAIL; 214 if (!options.fNoLoader) 215 if (procInit() != NO_ERROR) 216 return STATUS_DONE | STERR | ERROR_I24_QUIET_INIT_FAIL; 173 217 174 218 return STATUS_DONE; … … 296 340 * or 297 341 * push ebp 298 * mov ecx, dword ptr [ 123407452]342 * mov ecx, dword ptr [xxxxxxxx] 299 343 */ 300 344
Note:
See TracChangeset
for help on using the changeset viewer.