Skip to content

m68k: prepare to support ColdFire M5441x MMU enabled

Greg Ungerer linux-m68k 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8m68k: move CONFIG_FPU set to per-CPU configurationarch/m68k/Kconfig arch/m68k/Kconfig.cpu+6 -10 replies
2/8m68k: set appropriate machine type for m5411x SoC platformsarch/m68k/coldfire/head.S arch/m68k/include/asm/m5441xsim.h arch/m68k/include/asm/m54xxsim.h +2 more+6 -20 replies
3/8m68k: report correct FPU type on ColdFire MMU platformsarch/m68k/coldfire/head.S arch/m68k/include/asm/m5441xsim.h arch/m68k/include/asm/m54xxsim.h+4 -20 replies
4/8m68k: move ColdFire _bootmem_alloc codearch/m68k/coldfire/m54xx.c arch/m68k/include/asm/mcfmmu.h arch/m68k/mm/mcfmmu.c+32 -400 replies
5/8m68k: generalize io memory region setup for ColdFire ACR registersarch/m68k/include/asm/m5441xsim.h arch/m68k/include/asm/m54xxacr.h arch/m68k/include/asm/m54xxsim.h+5 -10 replies
6/8m68k: always make available dump_fpu()arch/m68k/kernel/process.c+2 -20 replies
7/8m68k: only generate FPU instructions of CONFIG_FPUarch/m68k/kernel/setup_mm.c+1 -14 replies
8/8m68k: don't panic if no hardware FPU definedarch/m68k/kernel/setup_mm.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] m68k: prepare to support ColdFire M5441x MMU enabled

The following changes are in preparation for supporting the ColdFire M5441x SoC with its MMU enabled. (It is already supported in the no-MMU mode).

Quite a few relate to the ability to run with no FPU hardware (and no software emulation of FP). I have taken CONFIG_FPU to mean that we expect a hardware FPU to be present - and we generate code to support that in the kernel. If CONFIG_FPU is not defined we generate no support code (so no use of FPU specific instructions). That is mostly what the code already did, but not comepletely.

I don't actually enable the M5441x to run with MMU enabled in this series. I don't have that hardware, so I can't verify that it actually works. But these changes don't break the m547x, so I expect all is ok. With the extra MMU enabling configuration line added you can cleanly build for the M5441x with MMU enabled after this series though.

These patches are based on the ideas from Yannick Gicquel's <[email protected]> patches from some time back.

Regards
Greg

 arch/m68k/Kconfig                     |    1
 arch/m68k/Kconfig.cpu                 |    6 +++++
 arch/m68k/coldfire/head.S             |    8 +++---
 arch/m68k/coldfire/m54xx.c            |   40 ----------------------------------
 arch/m68k/include/asm/m5441xsim.h     |    4 +++
 arch/m68k/include/asm/m54xxacr.h      |    2 -
 arch/m68k/include/asm/m54xxsim.h      |    4 +++
 arch/m68k/include/asm/mcfmmu.h        |    1
 arch/m68k/include/uapi/asm/bootinfo.h |    1
 arch/m68k/kernel/process.c            |    4 +--
 arch/m68k/kernel/setup_mm.c           |    5 ++--
 arch/m68k/mm/mcfmmu.c                 |   31 +++++++++++++++++++++++++-
 12 files changed, 57 insertions(+), 50 deletions(-)