Ignore:
Timestamp:
Dec 13, 2016, 3:07:49 AM (9 years ago)
Author:
David Azarewicz
Message:

Debugging changes

File:
1 edited

Legend:

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

    r178 r181  
    102102  int p;
    103103
    104   DPRINTF(2,"restart_ctxhook() started\n");
     104  D32ThunkStackTo32();
     105
     106  DPRINTF(8,"restart_ctxhook() started\n");
    105107  memset(&done_queue, 0x00, sizeof(done_queue));
    106108
     
    129131        need_reset = 0;
    130132
    131         DPRINTF(2,"port %d, TF_DATA: 0x%x\n", p, readl(port_mmio + PORT_TFDATA));
     133        DPRINTF(8,"port %d, TF_DATA: 0x%x\n", p, readl(port_mmio + PORT_TFDATA));
    132134
    133135        /* get "current command slot"; only valid if there are no NCQ cmds */
    134136        ccs = (int) ((readl(port_mmio + PORT_CMD) >> 8) & 0x1f);
    135         DPRINTF(3," PORT_CMD      = 0x%x\n", ccs);
     137        DPRINTF(8," PORT_CMD      = 0x%x\n", ccs);
    136138
    137139        for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != NULL; vIorb = vNext)
     
    283285  spin_unlock(drv_lock);
    284286
    285   DPRINTF(2,"restart_ctxhook() completed\n");
     287  DPRINTF(8,"restart_ctxhook() completed\n");
    286288
    287289  /* Check whether we have to rearm ourselves because some adapters were busy
     
    293295    KernArmHook(restart_ctxhook_h, 0, 0);
    294296  }
     297  KernThunkStackTo16();
    295298}
    296299
     
    331334  int p;
    332335
    333   DPRINTF(2,"reset_ctxhook() started\n");
     336  D32ThunkStackTo32();
     337
     338  DPRINTF(8,"reset_ctxhook() started\n");
    334339  memset(&done_queue, 0x00, sizeof(done_queue));
    335340
     
    455460  spin_unlock(drv_lock);
    456461
    457   DPRINTF(2,"reset_ctxhook() completed\n");
     462  DPRINTF(8,"reset_ctxhook() completed\n");
    458463
    459464  /* Check whether we have to rearm ourselves because some adapters were busy
     
    465470    KernArmHook(reset_ctxhook_h, 0, 0);
    466471  }
     472
     473  KernThunkStackTo16();
    467474}
    468475
     
    478485  int i;
    479486
    480   DPRINTF(2,"engine_ctxhook() started\n");
     487  D32ThunkStackTo32();
     488
     489  DPRINTF(8,"engine_ctxhook() started\n");
    481490  if (resume_sleep_flag)
    482491  {
     
    492501  spin_unlock(drv_lock);
    493502
    494   DPRINTF(2,"engine_ctxhook() completed\n");
     503  DPRINTF(8,"engine_ctxhook() completed\n");
    495504
    496505  if (iorbs_sent != 0)
     
    500509    KernArmHook(engine_ctxhook_h, 0, 0);
    501510  }
     511
     512  KernThunkStackTo16();
    502513}
    503514
Note: See TracChangeset for help on using the changeset viewer.