summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/lib
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-01-26 13:41:05 +0100
committerMichal Simek <monstr@monstr.eu>2011-01-28 14:04:36 +0100
commit026a2078791b64aede220b1b1a3e4dfe4ab175e7 (patch)
tree069d401f5149a429736da6620d2c731d4186f399 /arch/microblaze/lib
parent1f0324caefd39985e9fe052fac97da31694db31e (diff)
downloadop-kernel-dev-026a2078791b64aede220b1b1a3e4dfe4ab175e7.zip
op-kernel-dev-026a2078791b64aede220b1b1a3e4dfe4ab175e7.tar.gz
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: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud