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)
commit7c732cba3d9312882e82d91d5948261dfd5c8fe6
treea55df3b832bd8fcf505c8ef2fd2340d840e86be4
parentd2dc13b5339c657e526c405888df69d99322a016
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