From: Alan Cox Date: Mon, 4 Feb 2019 18:54:59 +0000 (+0000) Subject: tiny68k: clean up and add cache hooks X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=76f9cdf06b412546683f90fa7d6ee35020239dde;p=FUZIX.git tiny68k: clean up and add cache hooks Nobody has put a 68020 in one but it's a handy emulator test! --- diff --git a/Kernel/platform-tiny68k/main.c b/Kernel/platform-tiny68k/main.c index aeb51d04..fe7efebb 100644 --- a/Kernel/platform-tiny68k/main.c +++ b/Kernel/platform-tiny68k/main.c @@ -47,14 +47,14 @@ void pagemap_init(void) /* TODO: create a discard area at the end of the image and start there */ extern uint8_t _end; + uint32_t e = (uint32_t)&_end; + /* Allocate the rest of memory to the userspace */ + kmemaddblk((void *)e, 0xFF8000 - e); sysinfo.cpu[0] = cpu_type(); kprintf("Motorola 680%s%d processor detected.\n", sysinfo.cpu[0]?"":"0",sysinfo.cpu[0]); - - uint32_t e = (uint32_t)&_end; - /* Allocate the rest of memory to the userspace */ - kmemaddblk((void *)e, 0xFF8000 - e); + enable_icache(); } /* Udata and kernel stacks */