From 940341b4bf237b8d3dccf8ae2b7fc9acb46e27b9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 16 Nov 2013 13:53:38 +0100 Subject: [PATCH] videomixer: fix stray DMA detection --- software/videomixer/dvisamplerX.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/videomixer/dvisamplerX.c b/software/videomixer/dvisamplerX.c index 49c71b1cc..48e2b33ca 100644 --- a/software/videomixer/dvisamplerX.c +++ b/software/videomixer/dvisamplerX.c @@ -30,10 +30,10 @@ void dvisamplerX_isr(void) address_min = (unsigned int)dvisamplerX_framebuffers & 0x0fffffff; address_max = address_min + sizeof(dvisamplerX_framebuffers); if((dvisamplerX_dma_slot0_status_read() == DVISAMPLER_SLOT_PENDING) - && ((dvisamplerX_dma_slot0_address_read() < address_min) || (dvisamplerX_dma_slot0_address_read() >= address_max))) + && ((dvisamplerX_dma_slot0_address_read() < address_min) || (dvisamplerX_dma_slot0_address_read() > address_max))) printf("dvisamplerX: slot0: stray DMA\n"); if((dvisamplerX_dma_slot1_status_read() == DVISAMPLER_SLOT_PENDING) - && ((dvisamplerX_dma_slot1_address_read() < address_min) || (dvisamplerX_dma_slot1_address_read() >= address_max))) + && ((dvisamplerX_dma_slot1_address_read() < address_min) || (dvisamplerX_dma_slot1_address_read() > address_max))) printf("dvisamplerX: slot1: stray DMA\n"); if((dvisamplerX_resdetection_hres_read() != dvisamplerX_hres)