]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl_booke: protect the access to MAS7
authorKevin Hao <haokexin@gmail.com>
Tue, 24 Dec 2013 07:12:03 +0000 (15:12 +0800)
committerScott Wood <scottwood@freescale.com>
Thu, 9 Jan 2014 23:52:14 +0000 (17:52 -0600)
commit3db8197bb9e59807aea98b870a904a47fa62c6c1
treea55df3b832bd8fcf505c8ef2fd2340d840e86be4
parent2f37b235af589aad24070635b0b61b88d733577b
powerpc/fsl_booke: protect the access to MAS7

The e500v1 doesn't implement the MAS7, so we should avoid to access
this register on that implementations. In the current kernel, the
access to MAS7 are protected by either CONFIG_PHYS_64BIT or
MMU_FTR_BIG_PHYS. Since some code are executed before the code
patching, we have to use CONFIG_PHYS_64BIT in these cases.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/mm/hugetlbpage-book3e.c