• Sonic Zhang's avatar
    Blackfin: merge kernel init memory back into main memory region · 46284cd6
    Sonic Zhang authored
    If the kernel's init section is merged back into the main memory region
    during boot (which it should since that is how we've laid out the kernel
    linker map), we want to make sure that these aren't counted as independent
    regions.  Otherwise, if a large mapping is attempted which starts in the
    init region and extends into the main memory region, the access_ok func
    will deny it.  This leads to weird messages during runtime like "unable
    to map xxx library" from the ldso but upon running the application again,
    everything works fine.
    
    So if the address of the end of the init region is the same as the start
    of the main memory region, simply enlarge the memory region to include
    the init region.
    Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
    Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
    46284cd6
init.c 4.56 KB