Skip to content
Snippets Groups Projects
Commit df84ee29 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

ms3: fix skeleton

parent 48bf66b4
Branches
No related tags found
No related merge requests found
......@@ -43,6 +43,9 @@ static size_t dma_mem_size = 16 * 1024 * 1024;
static uint8_t *dma_mem;
static uintptr_t dma_mem_phys;
static uint8_t *dma_mem_w;
static uintptr_t dma_mem_phys_w;
int accelerator_init(bool dma) {
struct vfio_dev dev;
size_t reg_len;
......@@ -69,6 +72,9 @@ int accelerator_init(bool dma) {
return -1;
}
dma_mem_w = (uint8_t *) dma_mem + (matrix_size * matrix_size);
dma_mem_phys_w = dma_mem_phys + (matrix_size * matrix_size);
if (vfio_busmaster_enable(&dev)) {
fprintf(stderr, "Enabling busmastering failed\n");
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment