[PATCH 0/4] powerpc/booke: Modifications to fsl booke cpu setup code

Varun Sethi Varun.Sethi at freescale.com
Mon Jul 9 22:52:37 EST 2012


Modifications are aimed specifically at the e500mc/e5500 cpu setup code.
Following modifications are introduced by this patchset:
1. Move the E.HV check to the cpu setup code. Based on this check we manipulte the
   CPU_FTR_EMB_HV flag (added as a part of e500mc KVM support) in the cpu_spec 
   structure. We determine the presence of this feature based on the MMUCFG[LPIDSIZE]
   check and decide if we can setup the E.HV mode ivors.
2. Merge the 32 bit cpu setup code for e500mc/e5500 and define the "cpu_restore"
   routine (for e5500/e6500) only for the 64 bit case. The cpu_restore routine
   is used in the 64 bit case for setting up the secondary cores.
3. For the 64 bit case separate out e5500 cpu_setup and cpu_restore functions.
   The cpu_setup function (for the primary core) is passed the cpu_spec pointer,
   which is not there in case of the cpu_restore function. Also, in our case
   we will have to manipulate the CPU_FTR_EMB_HV flag on the the primary core.  
4. Added CPU_FTR_EMB_HV check for e5500.

Varun Sethi (4):
  Separate out E.HV check and ivor setup code.
  Merge the PPC 32 e5500 setup code with e500mc setup and don't define
  a restore routine for PPC 32.
  Separate out restore_e5500/setup_e5500 routines and check for E.HV
  mode before setting ivor setting code.
  Add CPU_FTR_EMB_HV check for e5500.

 arch/powerpc/kernel/cpu_setup_fsl_booke.S |   74 +++++++++++++++++++++++++----
 arch/powerpc/kernel/cputable.c            |    4 ++
 arch/powerpc/kernel/exceptions-64e.S      |   18 +------
 arch/powerpc/kernel/head_fsl_booke.S      |   18 ++-----
 4 files changed, 75 insertions(+), 39 deletions(-)

-- 
1.7.4.1




More information about the Linuxppc-dev mailing list