sh: Prevent fixed slot PMB remapping from clobbering boot entries.
commit55cef91a5d553265f03fe159f9fcdfac36902248
authorPaul Mundt <lethal@linux-sh.org>
Tue, 16 Feb 2010 08:14:04 +0000 (16 17:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 16 Feb 2010 08:14:04 +0000 (16 17:14 +0900)
treeae0dc74566ef0c8c80390d441ba690b28642b1ba
parent319c2cc761505ee54a9536c5d0b9c2ee3fb33866
sh: Prevent fixed slot PMB remapping from clobbering boot entries.

The PMB initialization code walks the entries and synchronizes the
software PMB state with the hardware mappings, preserving the slot index.
Unfortunately pmb_alloc() only tested the bit position in the entry map
and failed to set it, resulting in subsequent remaps being able to be
dynamically assigned a slot that trampled an existing boot mapping with
general badness ensuing.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/pmb.c