linux/arch/sh/kernel
Matt Fleming 4bea3418c7 sh: Enable the mmu in start_secondary()
For the boot, enable_mmu() is called from setup_arch() but we don't call
setup_arch() for any of the other cpus. So turn on the non-boot cpu's
mmu inside of start_secondary().

I noticed this bug on an SMP board when trying to map I/O memory
(smsc911x registers) into the kernel address space. Since the Address
Translation bit in MMUCR wasn't set, accessing the virtual address where
the smsc911x registers were supposedly mapped actually performed a
physical address access.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2010-03-29 12:11:51 +09:00
..
cpu Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-03-12 16:04:50 -08:00
vsyscall
.gitignore
asm-offsets.c
cpufreq.c arch/sh/kernel: Use set_cpus_allowed_ptr 2010-03-29 11:40:37 +09:00
crash_dump.c
debugtraps.S
disassemble.c
dma-nommu.c
dumpstack.c
dwarf.c sh: Silence unintialized variable warnings in dwarf unwinder. 2010-03-23 17:07:41 +09:00
entry-common.S sh: Correct the offset of the return address in ret_from_exception 2010-02-08 10:46:46 +09:00
ftrace.c tracing: Unify arch_syscall_addr() implementations 2010-02-17 13:07:21 +01:00
head_32.S sh: Merge legacy and dynamic PMB modes. 2010-02-18 18:13:51 +09:00
head_64.S
hw_breakpoint.c sh: hw-breakpoints: Accept breakpoints on NULL addresses. 2010-03-01 11:52:03 +09:00
idle.c sh: Tidy up a couple of section mismatches. 2010-03-23 17:06:47 +09:00
init_task.c
io_generic.c
io_trapped.c sh: Optimize runtime disabling of trapped I/O. 2010-01-27 21:56:57 +09:00
io.c
irq_32.c
irq_64.c
irq.c
kgdb.c
kprobes.c
localtimer.c
machine_kexec.c sh: machine_ops based reboot support. 2010-01-20 16:42:52 +09:00
machvec.c
Makefile sh: machine_ops based reboot support. 2010-01-20 16:42:52 +09:00
module.c
nmi_debug.c
perf_callchain.c perf: Fix inconsistency between IP and callchain sampling 2010-01-28 14:31:20 +01:00
perf_event.c sh: Tidy up a couple of section mismatches. 2010-03-23 17:06:47 +09:00
process_32.c sh: Mass ctrl_in/outX to __raw_read/writeX conversion. 2010-01-26 12:58:40 +09:00
process_64.c sh64: Remove long unused mid_sched macro 2010-03-23 13:35:39 +09:00
process.c
ptrace_32.c
ptrace_64.c Merge branch 'sh/stable-updates' 2010-02-15 14:49:37 +09:00
reboot.c sh: machine_ops based reboot support. 2010-01-20 16:42:52 +09:00
relocate_kernel.S
return_address.c
setup.c sh: establish PMB mappings for NUMA nodes. 2010-03-03 13:16:31 +09:00
sh_bios.c
sh_ksyms_32.c
sh_ksyms_64.c
signal_32.c sh: Mass ctrl_in/outX to __raw_read/writeX conversion. 2010-01-26 12:58:40 +09:00
signal_64.c Merge branch 'sh/stable-updates' 2010-02-15 14:49:37 +09:00
smp.c sh: Enable the mmu in start_secondary() 2010-03-29 12:11:51 +09:00
stacktrace.c
swsusp.c
sys_sh32.c
sys_sh64.c
sys_sh.c Add generic sys_olduname() 2010-03-12 15:52:32 -08:00
syscalls_32.S sh: unwire sys_recvmmsg. 2010-01-19 17:00:06 +09:00
syscalls_64.S sh64: wire up sys_accept4. 2010-01-19 17:00:31 +09:00
time.c sh: Convert sh to use read/update_persistent_clock 2010-03-05 02:04:38 +09:00
topology.c
traps_32.c sh: Setup boot CPU VBR early to enable early page faults. 2010-02-17 12:33:22 +09:00
traps_64.c sh64: Fix up the build for the thread_xstate changes. 2010-01-19 15:40:03 +09:00
traps.c sh: Mass ctrl_in/outX to __raw_read/writeX conversion. 2010-01-26 12:58:40 +09:00
unwinder.c
vmlinux.lds.S sh: Kill off some superfluous legacy PMB special casing. 2010-02-16 21:43:38 +09:00