]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl-booke: Cleanup init/exception setup to be runtime
authorKumar Gala <galak@kernel.crashing.org>
Thu, 8 Jan 2009 14:31:20 +0000 (08:31 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 29 Jan 2009 00:16:50 +0000 (18:16 -0600)
commitb82d7957275b81da17ab3710232291da59a48b75
treeda2bee2ae3db6b0af900947f60cb0c7bf1b9bd1f
parent98c8e8b5a133f7a015e8c33da46568d7593313f7
powerpc/fsl-booke: Cleanup init/exception setup to be runtime

We currently have a few variants of fsl-booke processors (e500v1, e500v2,
e500mc, and e200).  They all have minor differences that we had previously
been handling via ifdefs.

To move towards having this support the following changes have been made:

* PID1, PID2 only exist on e500v1 & e500v2 and should not be accessed on
  e500mc or e200.  We use MMUCFG[NPIDS] to determine which case we are
  since we only touch PID1/2 in extremely early init code.

* Not all IVORs exist on all the processors so introduce cpu_setup
  functions for each variant to setup the proper IVORs that are either
  unique or exist but have some variations between the processors

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/cpu_setup_fsl_booke.S [new file with mode: 0644]
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/head_booke.h
arch/powerpc/kernel/head_fsl_booke.S