summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/early_printk.c
diff options
context:
space:
mode:
authorPaul Mundt2008-11-12 04:53:48 +0100
committerPaul Mundt2008-11-12 04:53:48 +0100
commit185aed75570fb4f78ef283dfa26cd9da5fa06a91 (patch)
treea98cb3f46bf9426f8d4a660d63b8a3ac7d9f369d /arch/sh/kernel/early_printk.c
parentusb: r8a66597-hcd: fix wrong data access in SuperH on-chip USB (diff)
downloadkernel-qcow2-linux-185aed75570fb4f78ef283dfa26cd9da5fa06a91.tar.gz
kernel-qcow2-linux-185aed75570fb4f78ef283dfa26cd9da5fa06a91.tar.xz
kernel-qcow2-linux-185aed75570fb4f78ef283dfa26cd9da5fa06a91.zip
sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB.
With the PMB enabled, only P1SEG and up are covered by the PMB mappings, meaning that situations where out-of-bounds physical addresses are read from will lead to TLB reset after the PMB miss, allowing for use cases like dd if=/dev/mem to reset the TLB. Fix this up to make sure the reference is between __MEMORY_START (phys) and __pa(high_memory). This is coherent across all variants of sh/sh64 with and without MMU, though the PMB bug itself is only applicable to SH-4A parts. Reported-by: Hideo Saito <saito@densan.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/early_printk.c')
0 files changed, 0 insertions, 0 deletions