summaryrefslogtreecommitdiff
path: root/arch/m68k/mm/mcfmmu.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2020-06-13 17:17:52 +1000
committerGreg Ungerer <gerg@linux-m68k.org>2020-07-27 12:32:00 +1000
commitbdee0e793cea10c516ff48bf3ebb4ef1820a116b (patch)
treef15923f563b3a5783266949e4d336a2891f24d4c /arch/m68k/mm/mcfmmu.c
parent416426ab79b713a40c8f8d0428dfbfd2e0f7c080 (diff)
m68knommu: fix overwriting of bits in ColdFire V3 cache control
The Cache Control Register (CACR) of the ColdFire V3 has bits that control high level caching functions, and also enable/disable the use of the alternate stack pointer register (the EUSP bit) to provide separate supervisor and user stack pointer registers. The code as it is today will blindly clear the EUSP bit on cache actions like invalidation. So it is broken for this case - and that will result in failed booting (interrupt entry and exit processing will be completely hosed). This only affects ColdFire V3 parts that support the alternate stack register (like the 5329 for example) - generally speaking new parts do, older parts don't. It has no impact on ColdFire V3 parts with the single stack pointer, like the 5307 for example. Fix the cache bit defines used, so they maintain the EUSP bit when carrying out cache actions through the CACR register. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mm/mcfmmu.c')
0 files changed, 0 insertions, 0 deletions