Michael Schmitz fded332bf4 m68k/atari - stram: alloc ST-RAM pool even if kernel not in ST-RAM
With the kernel loaded to FastRAM (TT-RAM), none of the ST-RAM
address range is mapped by init_mem, and ST-RAM is not accessible
through the normal allocation pathways as a result.

Implement ST-RAM pool allocation to be based on physical addresses
always (it already was when the kernel was loaded in ST-RAM).
Return kernel virtual addresses as per normal.

The current test for the kernel residing in ST-RAM always returns
true. Use the bootinfo memory chunk order instead - with the kernel
in FastRAM, ST-RAM (phys. 0x0) is not the first chunk.

In case the kernel is running from FastRAM, delay mapping of ST-RAM
pool until after mem_init.

Provide helper functions for those users of ST-RAM that need
to be aware of the backing physical addresses.

Kudos to Geert for his hints on getting this started.

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2014-05-26 22:41:24 +02:00
..
2011-07-25 11:20:40 +10:00
2011-12-10 19:52:48 +01:00
2011-03-31 11:26:23 -03:00
2013-04-05 13:28:27 +01:00
2013-08-14 11:46:30 +02:00
2013-02-26 02:46:08 -05:00
2013-09-26 09:54:16 +02:00
2013-11-13 20:21:46 +01:00
2013-12-08 11:01:47 +01:00
2011-03-31 11:26:23 -03:00
2011-12-10 19:52:47 +01:00
2014-01-16 09:27:02 +01:00
2011-12-10 19:52:47 +01:00
2011-04-10 17:01:05 +02:00
2011-04-10 17:01:05 +02:00
2013-03-04 11:08:50 +10:00
2011-03-16 19:10:41 +01:00
2012-03-28 18:30:02 +01:00
2014-05-20 10:59:37 +02:00
2012-04-22 20:16:50 +02:00