• Paul Walmsley's avatar
    SRAM patcher: add SRAM virtual address patcher · 5c1b46c6
    Paul Walmsley authored
    Add omap_sram_patch_va(), which patches a virtual address into SRAM
    code at runtime.  This will be used in a future patch series to implement
    part of multiboot support for OMAP2/3.
    
    If CONFIG_OMAP_DEBUG_SRAM_PATCH is defined (the default), the code
    will be very careful to ensure that the target location to patch is
    valid.  It will only overwrite a location if the location contains a
    32-bit magic number, defined as SRAM_VA_MAGIC.  Also, defining DEBUG
    at the top of the file and enabling CONFIG_DEBUG_LL will log patch
    locations and data via printk.
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    5c1b46c6
Kconfig 5.59 KB