commit | 026a2078791b64aede220b1b1a3e4dfe4ab175e7 | [log] [tgz] |
---|---|---|
author | Michal Simek <monstr@monstr.eu> | Wed Jan 26 13:41:05 2011 +0100 |
committer | Michal Simek <monstr@monstr.eu> | Fri Jan 28 14:04:36 2011 +0100 |
tree | 069d401f5149a429736da6620d2c731d4186f399 | |
parent | 1f0324caefd39985e9fe052fac97da31694db31e [diff] |
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>