summaryrefslogtreecommitdiff
path: root/fs/sync.c
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-03-28 20:08:25 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-03-29 12:11:51 +0900
commit4bea3418c737891894b9d3d3e9f8bbd67d66fa38 (patch)
treecf3fe1db70b786b26f0b4b7334bfd73565988725 /fs/sync.c
parentd5ab780305bb6d60a7b5a74f18cf84eb6ad153b1 (diff)
downloadlinux-3.10-4bea3418c737891894b9d3d3e9f8bbd67d66fa38.tar.gz
linux-3.10-4bea3418c737891894b9d3d3e9f8bbd67d66fa38.tar.bz2
linux-3.10-4bea3418c737891894b9d3d3e9f8bbd67d66fa38.zip
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>
Diffstat (limited to 'fs/sync.c')
0 files changed, 0 insertions, 0 deletions