From: Anton Blanchard Date: Thu, 12 Dec 2013 04:59:38 +0000 (+1100) Subject: powerpc/pseries: Fix endian issues in nvram code X-Git-Tag: v3.13-rc5~37^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa2984d1b5d9736a88c813ae89c160a2f9d5308;p=pandora-kernel.git powerpc/pseries: Fix endian issues in nvram code The NVRAM code has a number of endian issues. I noticed a very confused error log count: RTAS: 100663330 -------- RTAS event begin -------- 100663330 == 0x06000022. 0x6 LE error logs and 0x22 BE error logs. The pstore code has similar issues - if we write an oops in one endian and attempt to read it in another we get junk. Make both of these formats big endian, and byteswap as required. Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed