• Michal Simek's avatar
    microblaze: Fix DTB passing from bootloader · 026a2078
    Michal Simek authored
    Little endian system needs to check OF_DT_HEADER
    but it is swapped because it is in big-endian.
    Microblaze LE provides lwr instruction which loads
    magic number in BIG endian format which can be compared.
    
    There is used the fact that if you write 0x1 as word
    and load it as byte then you get for big-endian zero
    and 1 for little-endian.
    Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
    026a2078
head.S 8.08 KB