]> git.baikalelectronics.ru Git - kernel.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)
commita1c3c5928a078dd5e19aadf70e323487967bd748
tree069d401f5149a429736da6620d2c731d4186f399
parentcfe75b4272bc3a015fb958c25fe2ea037ad7ee45
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