]> git.karo-electronics.de Git - mv-sheeva.git/commit
microblaze: Fix DTB passing from bootloader
authorMichal Simek <monstr@monstr.eu>
Wed, 26 Jan 2011 12:41:05 +0000 (13:41 +0100)
committerMichal Simek <monstr@monstr.eu>
Fri, 28 Jan 2011 13:04:36 +0000 (14:04 +0100)
commit026a2078791b64aede220b1b1a3e4dfe4ab175e7
tree069d401f5149a429736da6620d2c731d4186f399
parent1f0324caefd39985e9fe052fac97da31694db31e
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>
arch/microblaze/kernel/head.S