diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-09-12 19:52:51 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-09-12 19:52:51 +0000 |
commit | 7cab70d1cb7298035429dd8953e521a31fc6770d (patch) | |
tree | 69f2d27d6ee47a11777f8bca7f0d141a15247d66 /hw/kdrive/ati/ati_dma.h | |
parent | 0cd662ea80579c317d706ebe04971bb29d0f9b4f (diff) |
Improve error handling, especially in the DRI case. Do some FatalErrors
instead of ErrorFs for things that are really bad, and put limits on
some loops. Now, sometimes instead of hanging the entire system, we
(mostly-) cleanly drop to console when the card has hung.
Diffstat (limited to 'hw/kdrive/ati/ati_dma.h')
-rw-r--r-- | hw/kdrive/ati/ati_dma.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/ati/ati_dma.h b/hw/kdrive/ati/ati_dma.h index ce30384c4..76c7733de 100644 --- a/hw/kdrive/ati/ati_dma.h +++ b/hw/kdrive/ati/ati_dma.h @@ -65,8 +65,8 @@ do { \ } while (0) #define END_DMA() do { \ if (__count != __total) \ - ErrorF("count != total (%d vs %d) at %s:%d\n", __count, \ - __total, __FILE__, __LINE__); \ + FatalError("count != total (%d vs %d) at %s:%d\n", \ + __count, __total, __FILE__, __LINE__); \ atis->indirectBuffer->used += __count * 4; \ } while (0) |