• Alexander Gordeev's avatar
    s390: Map kernel at fixed location when KASLR is disabled · 54f2ecc3
    Alexander Gordeev authored
    Since kernel virtual and physical address spaces are
    uncoupled the kernel is mapped at the top of the virtual
    address space in case KASLR is disabled.
    
    That does not pose any issue with regard to the kernel
    booting and operation, but makes it difficult to use a
    generated vmlinux with some debugging tools (e.g. gdb),
    because the exact location of the kernel image in virtual
    memory is unknown. Make that location known and introduce
    CONFIG_KERNEL_IMAGE_BASE configuration option.
    
    A custom CONFIG_KERNEL_IMAGE_BASE value that would break
    the virtual memory layout leads to a build error.
    
    The kernel image size is defined by KERNEL_IMAGE_SIZE
    macro and set to 512 MB, by analogy with x86.
    Suggested-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
    54f2ecc3
relocs.c 9.05 KB