]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Map more memory early on 601 processors
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 18 Jun 2009 19:17:39 +0000 (19:17 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jun 2009 04:37:25 +0000 (14:37 +1000)
commit905336800c0ebe3a9ae591b67a06827dde528b0c
tree6df61604f244537719795b796a4c93b5ed8a8d47
parentf44ae600fa04fbcab3bcd5a5fa94482bac140bc3
powerpc: Map more memory early on 601 processors

The 32-bit kernel relies on some memory being mapped covering
the kernel text,data and bss at least, early during boot before
the full MMU setup is done. On 32-bit "classic" processors, this
is done using BAT registers.

On 601, the size of BATs is limited to 8M and we use 2 of them
for that initial mapping. This can become quite tight when enabling
features like lockdep, so let's use a 3rd one to bump that mapping
from 16M to 24M. We keep the 4th BAT free as it can be useful for
debugging early boot code to map things like serial ports.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/head_32.S