Commits on Source 2

  • Jordan Niethe's avatar
    OF: Add a separate direct kernel loading word · b3f699c0
    Jordan Niethe authored and Alexey Kardashevskiy's avatar Alexey Kardashevskiy committed
    
    
    Currently, go-64 is used for booting a kernel from qemu (i.e. -kernel).
    However, there is an expectation from users that this should be able to
    boot not just vmlinux kernels but things like Zimages too.
    
    The bootwrapper of a BE zImage is a 32-bit ELF. Attempting to load that
    with go-64 means that it will be ran with MSR_SF set (64-bit mode). This
    crashes early in boot (usually due to what should be 32-bit operations
    being done with 64-bit registers eventually leading to an incorrect
    address being generated and branched to).
    
    Note that our 64-bit payloads are prepared to enter with MSR_SF cleared
    and set it themselves very early.
    
    Add a new word named go-direct that will execute any simple payload
    in-place and will enter with MSR_SF cleared. This allows booting a BE
    zImage from qemu with -machine kernel-addr=0.
    
    Signed-off-by: default avatarJordan Niethe <jniethe5@gmail.com>
    Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
    b3f699c0
  • Alexey Kardashevskiy's avatar
    version: update to 20220719 · 6b6c16b4
    Alexey Kardashevskiy authored
    
    
    Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
    6b6c16b4
Loading
Loading