• Paul Mundt's avatar
    sh: Prevent fixed slot PMB remapping from clobbering boot entries. · 55cef91a
    Paul Mundt authored
    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: default avatarPaul Mundt <lethal@linux-sh.org>
    55cef91a
pmb.c 11.5 KB