public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
800e458
)
tiny68k: 68010 hooks
author
Alan Cox
<alan@linux.intel.com>
Mon, 4 Feb 2019 00:38:17 +0000
(
00:38
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 4 Feb 2019 00:38:17 +0000
(
00:38
+0000)
Kernel/platform-tiny68k/main.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-tiny68k/main.c
b/Kernel/platform-tiny68k/main.c
index
d7f8778
..
aeb51d0
100644
(file)
--- 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);
}