Commit 6767c634 authored by Matthieu Cattin's avatar Matthieu Cattin

Fix bug in item length calculation. Was issuing DMA bigger than a page and crashing the host.

parent a408e718
......@@ -243,7 +243,7 @@ class CSpecFmcAdc100Ms:
for num in range(items_required):
if(items_required == num+1):
next_item = 0
item_length = ((carrier_addr+length)-(num*self.DMA_LENGTH))
item_length = (length-(num*self.DMA_LENGTH))
else:
next_item = 1
item_length = self.DMA_LENGTH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment