dma code needs debug and makefile modification