1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-27 18:27:32 +02:00

ubb-vga2.c (line, frame): don't pass prefetch pointer but just use *p

This commit is contained in:
Werner Almesberger 2011-04-28 11:57:21 -03:00
parent 6414d92412
commit e94b3bbcfc

View File

@ -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);