Changeset 128 for trunk/src/os2ahci/os2ahci.c
- Timestamp:
- Oct 14, 2011, 10:22:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.c
r125 r128 161 161 USHORT init_drv(RPINITIN _far *req) 162 162 { 163 static int init_drv_called; 164 static int init_drv_failed; 163 165 RPINITOUT _far *rsp = (RPINITOUT _far *) req; 164 166 DDD_PARM_LIST _far *ddd_pl = (DDD_PARM_LIST _far *) req->InitArgs; … … 172 174 u16 vendor; 173 175 u16 device; 176 177 if (init_drv_called) { 178 /* This is the init call for the second (legacy IBMS506$) character 179 * device driver. If the main driver failed initialization, fail this 180 * one as well. 181 */ 182 rsp->CodeEnd = (u16) end_of_code; 183 rsp->DataEnd = (u16) &end_of_data; 184 return(STDON | ((init_drv_failed) ? ERROR_I24_QUIET_INIT_FAIL : 0)); 185 } 186 init_drv_called = 1; 174 187 175 188 /* set device helper entry point */ … … 375 388 rsp->CodeEnd = 0; 376 389 rsp->DataEnd = 0; 390 init_drv_failed = 1; 377 391 378 392 /* free context hooks */
Note:
See TracChangeset
for help on using the changeset viewer.