• Alexander Egorenkov's avatar
    s390/boot: make _diag308_reset_dma() position-independent · 7accd1f8
    Alexander Egorenkov authored
    As a preparation for moving the .dma.data section from the decompressor to
    the decompressed kernel, the .dma.data section must be made relocatable
    by replacing absolute memory addressing with relative one. This is required
    in order to be able to relocate the DMA section to a memory address <= 2G
    as required by the hardware architecture. The DMA section must be
    relocated in case the decompressed kernel was loaded to an address >= 2G
    which can occur if KASAN is enabled. By making the whole DMA section
    position-independent we avoid applying relocations to it whenever it is
    moved to a different address, which becomes possible as soon as it becomes
    a part of the decompressed kernel.
    Signed-off-by: default avatarAlexander Egorenkov <egorenar@linux.ibm.com>
    Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    7accd1f8
text_dma.S 3.14 KB