]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl-booke: Fix address issue when using relocatable kernels
authorMatthew McClintock <msm@freescale.com>
Tue, 29 Jun 2010 19:42:07 +0000 (14:42 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Sun, 11 Jul 2010 16:04:08 +0000 (11:04 -0500)
commitaf9e4e59fecfc568c8a29d7f18e51b76374e7bf3
treeacd8ef9ff3e7d21f9f6deab764d058dbf79f7d7f
parent71f774d1bb79f1ef5f7b0821a7e23ff1101b9f83
powerpc/fsl-booke: Fix address issue when using relocatable kernels

When booting a relocatable kernel it needs to jump to the correct
start address, which for BookE parts is usually unchanged
regardless of the physical memory offset.

Recent changes cause problems with how we calculate the start
address, it was always adding the RMO into the start address
which is incorrect. This patch only adds in the RMO offset
if we are in the kexec code path, as it needs the RMO to work
correctly.

Instead of adding the RMO offset in in the common code path, we
can just set r6 to the RMO offset in the kexec code path instead
of to zero, and finally perform the masking in the common code
path

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/fsl_booke_entry_mapping.S