From 1745281a7b3b4f9030d24c1a41a3be5df60b4ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 22 May 2017 07:01:25 +0000 Subject: [PATCH] provide a second copy of EmuTOS in FPGA RAM for blitter access --- BaS_gcc/sys/BaS.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaS_gcc/sys/BaS.c b/BaS_gcc/sys/BaS.c index 544784c..e2cdd65 100644 --- a/BaS_gcc/sys/BaS.c +++ b/BaS_gcc/sys/BaS.c @@ -432,6 +432,8 @@ void BaS(void) /* copy EMUTOS */ src = (uint8_t *) EMUTOS; memcpy(dst, src, EMUTOS_SIZE); + /* do a second copy to FPGA RAM exclusively for the blitter */ + memcpy(dst + 0x40000000, src, EMUTOS_SIZE); xprintf("finished\r\n"); xprintf("flush caches: ");