Skip to content
Commit 026a2078 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Fix DTB passing from bootloader



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>
parent 1f0324ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment