]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Fix initrd when net booting.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 5 Oct 2005 22:12:00 +0000 (15:12 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 5 Oct 2005 22:12:00 +0000 (15:12 -0700)
commit1575251eb0ee6599c11f56aac7472f07c98d6113
treeb7456cf49eaf034740fa7cb8b75e5b6ee01c9666
parent97f10e68d603413920a05cc595484893632aeb79
[SPARC64]: Fix initrd when net booting.

By allocating early memory for the firmware page tables, we
can write over the beginning of the initrd image.

So what we do now is:

1) Read in firmware translations table while still on the
   firmware's trap table.
2) Switch to Linux trap table.
3) Init bootmem.
4) Build firmware page tables using __alloc_bootmem().

And this keeps the initrd from being clobbered.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/init.c