Hi Mike,

Am 03.12.2018 um 00:04 schrieb Mike Rapoport:
I don't know what were the shortcomings of the old memory model, and why
ST-RAM and FastRAM are treated differently, so probably the simplest way
would be just inform memblock that the ST-RAM is not available to it:

diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c
index 7497cf3..0bda2c4 100644
--- a/arch/m68k/mm/motorola.c
+++ b/arch/m68k/mm/motorola.c
@@ -233,6 +233,7 @@ void __init paging_init(void)
                        printk("Ignoring memory chunk at 0x%lx:0x%lx before the 
first chunk\n",
                                m68k_memory[i].addr, m68k_memory[i].size);
                        printk("Fix your bootloader or use a memfile to make use of 
this area!\n");
+                       memblock_remove(m68k_memory[i].addr, 
m68k_memory[i].size);
                        m68k_num_memory--;
                        memmove(m68k_memory + i, m68k_memory + i + 1,
                                (m68k_num_memory - i) * sizeof(struct 
m68k_mem_info));


Thanks, that's fixed it for me. Andreas?

Cheers,

        Michael

Reply via email to