From: Alan Cox Date: Mon, 4 Feb 2019 00:38:17 +0000 (+0000) Subject: tiny68k: 68010 hooks X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bbb3e13598faf090c4cbdd8917d5866d7caefcd1;p=FUZIX.git tiny68k: 68010 hooks --- diff --git a/Kernel/platform-tiny68k/main.c b/Kernel/platform-tiny68k/main.c index d7f8778b..aeb51d04 100644 --- a/Kernel/platform-tiny68k/main.c +++ b/Kernel/platform-tiny68k/main.c @@ -44,9 +44,15 @@ void memzero(void *p, usize_t len) void pagemap_init(void) { /* Linker provided end of kernel */ + /* TODO: create a discard area at the end of the image and start + there */ extern uint8_t _end; + + 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; - kprintf("Kernel end %p\n", e); /* Allocate the rest of memory to the userspace */ kmemaddblk((void *)e, 0xFF8000 - e); }