amiga_boottest
diff src/copper.c @ 2:58ebd84822e7
it works
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 22 Feb 2018 12:44:20 +0200 |
parents | 48093e4bd99a |
children |
line diff
1.1 --- a/src/copper.c Wed Feb 21 18:00:45 2018 +0200 1.2 +++ b/src/copper.c Thu Feb 22 12:44:20 2018 +0200 1.3 @@ -5,7 +5,7 @@ 1.4 static uint32_t *copmem, *curlist; 1.5 static int mode, copmem_size; 1.6 1.7 -extern uint32_t _mem_start; 1.8 +extern uint32_t **_mem_start; 1.9 1.10 int init_copper(int maxlist, int nlists) 1.11 { 1.12 @@ -14,7 +14,7 @@ 1.13 mode = nlists >= COPPER_DOUBLE ? COPPER_DOUBLE : COPPER_SINGLE; 1.14 1.15 copmem_size = maxlist * 4 * mode; 1.16 - copmem = (uint32_t*)_mem_start; 1.17 + copmem = *_mem_start; 1.18 1.19 curlist = copperlist = copmem; 1.20 *curlist = COPPER_END;