powerpc/ps3: Add ps3_mm_set_repository_highmem
authorGeoff Levand <geoff@infradead.org>
Tue, 13 Jan 2015 01:00:20 +0000 (01:00 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Jan 2015 06:31:21 +0000 (17:31 +1100)
commitd4b18bd675b850fbf395304433952130034bdd89
tree2a6fbda17f555033b85f228d85c1fa9c38a89fd0
parentc02d35067307dc65ebc52d1f5855102da184146b
powerpc/ps3: Add ps3_mm_set_repository_highmem

Add the new routine ps3_mm_set_repository_highmem() that saves highmem info to
the LV1 hypervisor registry so that the info will be available to second stage
OS's loaded by petitboot/kexec. FreeBSD and some Linux derivatives use
this feature.

Also, move the existing ps3_mm_get_repository_highmem() routine up in
the source file.

This implementation of ps3_mm_set_repository_highmem() assumes the repository
will have a single highmem region entry (at index 0).

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/ps3/mm.c