• Nicolas Pitre's avatar
    [ARM PATCH] 2160/1: allow modules to work with XIP kernel · f05ee516
    Nicolas Pitre authored
    Patch from Nicolas Pitre
    
    This should be applied on top of patch #2154/1.
    
    This maps the XIP kernel in the same virtual area as used for kernel
    modules instead of the previous arbitrary location.  Doing so has the
    advantage of having a well defined kernel address not conflicting
    with the different definitions for VMALLOC_END, as well as making
    modules loadable without any indirect long branch calls.  The work
    on XIPable MTD also requires this with code marked __xipram for the
    same reason.
    
    This of course reduces the space available for kernel modules from
    16MB to either 14MB or 12MB depending on the size of the resulting 
    kernel but that shouldn't be a real issue at all, given that the
    whole purpose behind XIP is to execute as much stuff from flash, 
    which is better achieved by compiling drivers in the kernel directly.
    
    Signed-off-by: Nicolas Pitre 
    Signed-off-by: Russell King
    f05ee516
Makefile 7.5 KB