Re: APUS and IOs question
flat view
From: Simon Richter <hidden>
Date: 2006-11-09 14:34:58
Hi, Benjamin Herrenschmidt schrieb:
Can you give me a proper explanation of the whole memory map story on it so I get a better idea of how invasive handling it would be ?
On APUS systems, you have two (major) kinds of memory, that on the Amiga board and that on the CPU board. The former is generally mapped at address zero, but you don't want to use it except as DMA buffers when talking to the internal hardware (because the internal hardware doesn't see the memory on the CPU board). The memory on the CPU board is the "main" memory for Linux (because there is more of it, and the access is faster), but its location is assigned dynamically during the boot process, and depends on the size of the memory and on other boards installed. My plan for moving APUS to arch/powerpc involves writing a new bootloader (I'm currently hacking binutils to support AmigaOS binaries) that builds a proper flattened device tree and calls the kernel, but I'm not sure where the kernel virtual mapping that allows the kernel to run from a fixed address should be set up -- if in the bootloader, the kernel needs to be aware that changing the MMU settings will yield interesting results, and if in the kernel, we need some platform specific init code to handle that. Simon