diff --git a/ubb-vga/ubb-vga2.c b/ubb-vga/ubb-vga2.c index 429b8de..8b75219 100644 --- a/ubb-vga/ubb-vga2.c +++ b/ubb-vga/ubb-vga2.c @@ -262,7 +262,7 @@ void setup(void) } -static void line(const uint32_t *line, volatile const uint32_t *prefetch) +static void line(const uint32_t *line) { const uint32_t *p = line; @@ -344,7 +344,7 @@ static void line(const uint32_t *line, volatile const uint32_t *prefetch) } fail: - (void) *prefetch; + (void) *(volatile const uint32_t *) p; until(line_cycles); } @@ -385,7 +385,7 @@ static void frame(const uint32_t *f) until(line_cycles-US(0.79)); for (p = f; p != f+YRES*line_words; p += line_words) - line(p, p+line_words); + line(p); /* Back porch */ hdelay(14);