Changeset 191 for trunk/src/os2ahci/ctxhook.c
- Timestamp:
- Aug 10, 2017, 11:21:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ctxhook.c
r184 r191 104 104 D32ThunkStackTo32(); 105 105 106 vNext = NULL;106 vNext = FAR16NULL; 107 107 rearm_ctx_hook = 0; 108 108 … … 131 131 /* restart this port */ 132 132 port_mmio = port_base(ai, p); 133 vProblemIorb = NULL;133 vProblemIorb = FAR16NULL; 134 134 need_reset = 0; 135 135 … … 140 140 DPRINTF(8," PORT_CMD = 0x%x\n", ccs); 141 141 142 for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != NULL; vIorb = vNext)142 for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext) 143 143 { 144 144 IORBH *pIorb = Far16ToFlat(vIorb); … … 180 180 { 181 181 /* no further analysis -- we're done with this one */ 182 vProblemIorb = NULL;182 vProblemIorb = FAR16NULL; 183 183 } 184 184 } … … 223 223 ai->ports[p].cmd_slot = 0; 224 224 225 if (vProblemIorb != NULL)225 if (vProblemIorb != FAR16NULL) 226 226 { 227 227 IORBH *pProblemIorb = Far16ToFlat(vProblemIorb); … … 271 271 272 272 /* call notification routine on all IORBs which have completed */ 273 for (vIorb = done_queue.vRoot; vIorb != NULL; vIorb = vNext)273 for (vIorb = done_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext) 274 274 { 275 275 IORBH *pIorb = Far16ToFlat(vIorb); … … 339 339 D32ThunkStackTo32(); 340 340 341 vNext = NULL;341 vNext = FAR16NULL; 342 342 rearm_ctx_hook = 0; 343 343 … … 355 355 356 356 /* add ports of active IORBs from the abort queue to ports_to_reset[] */ 357 for (vIorb = abort_queue.vRoot; vIorb != NULL; vIorb = vNext)357 for (vIorb = abort_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext) 358 358 { 359 359 IORBH *pIorb = Far16ToFlat(vIorb); … … 417 417 418 418 /* retry or abort all remaining active commands on this port */ 419 for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != NULL; vIorb = vNext)419 for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext) 420 420 { 421 421 IORBH *pIorb = Far16ToFlat(vIorb); … … 448 448 449 449 /* complete all aborted IORBs */ 450 for (vIorb = done_queue.vRoot; vIorb != NULL; vIorb = vNext)450 for (vIorb = done_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext) 451 451 { 452 452 IORBH *pIorb = Far16ToFlat(vIorb);
Note:
See TracChangeset
for help on using the changeset viewer.