android_kernel_motorola_sm6225/arch/m68k
Greg Ungerer 465bc917d1 m68knommu: fix overwriting of bits in ColdFire V3 cache control
[ Upstream commit bdee0e793cea10c516ff48bf3ebb4ef1820a116b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-26 10:31:01 +02:00
..
68000
amiga m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
apollo
atari m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
bvme6000 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
coldfire m68k/PCI: Fix a memory leak in an error handling path 2020-06-25 15:32:50 +02:00
configs scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-07-22 09:32:04 +02:00
emu
fpsp040
hp300 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
ifpsp060
include m68knommu: fix overwriting of bits in ColdFire V3 cache control 2020-08-26 10:31:01 +02:00
kernel m68k: nommu: register start of the memory with memblock 2020-07-22 09:32:01 +02:00
lib
mac m68k: mac: Fix IOP status/control register writes 2020-08-19 08:14:49 +02:00
math-emu
mm m68k: mm: fix node memblock init 2020-07-22 09:32:01 +02:00
mvme16x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
mvme147 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
q40 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
sun3 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
sun3x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
tools/amiga
install.sh
Kconfig
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile m68k: Add -ffreestanding to CFLAGS 2019-03-23 20:10:00 +01:00