From 7cab70d1cb7298035429dd8953e521a31fc6770d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 12 Sep 2004 19:52:51 +0000 Subject: 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. --- hw/kdrive/ati/ati_dma.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/kdrive/ati/ati_dma.h') 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) -- cgit v1.2.3