Ignore:
Timestamp:
Aug 24, 2019, 6:36:37 PM (6 years ago)
Author:
David Azarewicz
Message:

Fixed trap in hardware failure recovery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ctxhook.c

    r196 r201  
    342342  rearm_ctx_hook = 0;
    343343
    344   DPRINTF(8,"reset_ctxhook() started\n");
     344  //DPRINTF(8,"reset_ctxhook() started\n");
     345  dprintf(0, __func__": BEG\n");
    345346  memset(&done_queue, 0x00, sizeof(done_queue));
    346347
     
    473474  if (rearm_ctx_hook)
    474475  {
    475     msleep(250);
    476     KernArmHook(reset_ctxhook_h, 0, 0);
    477   }
    478 
     476    /* we cannot rearm ourself because we will execute immediately leaving
     477     * no time to process and clear the reason we need to rearm. Therefore
     478     * we set the timer again.
     479     */
     480    //msleep(250);
     481    //KernArmHook(reset_ctxhook_h, 0, 0);
     482    Timer_StartTimerMS(&th_reset_watchdog, 250, reset_watchdog, 0);
     483  }
     484
     485  dprintf(0,__func__": END\n");
    479486  KernThunkStackTo16();
    480487}
Note: See TracChangeset for help on using the changeset viewer.