]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Add shared bit to Coldfire kernel page entries
authorAlexander Stein <alexander.stein@systec-electronic.com>
Tue, 10 Jan 2012 13:06:07 +0000 (14:06 +0100)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 7 Feb 2012 01:04:00 +0000 (11:04 +1000)
commitb583422da7f03c0869900e66211163ab830c9f9a
treebada63d1d3aeff64fce740babbdbc6e78568a970
parent618d17535172ce1792bc9705a2c18724191915db
m68k: Add shared bit to Coldfire kernel page entries

We had problems accessing our NOR flash trough mtd. The system always got
stuck at attaching UBI using ubiattach if booted from NFS or after mounting
squashfs as rootfs directly from NOR flash.
After some testing of the new changes introduced from v3.2-rc1 to v3.2-rc7
we had to apply the following patch to get mtd working again.

[gerg: The problem was ultimately caused by allocated kernel pages not having
the shared (SG) bit set. Without the SG bit set the MMU will look for page
matches incorporating the ASID as well. Things like module regions allocated
using vmalloc would fault when other processes run. ]

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/mcf_pgtable.h