powerpc/powernv: Fix endian issues with OPAL async code
OPAL defines opal_msg as a big endian struct so we have to byte swap it on little endian builds. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
32b941b793
commit
bb4398e1de
@@ -422,9 +422,9 @@ enum OpalSysparamPerm {
|
||||
};
|
||||
|
||||
struct opal_msg {
|
||||
uint32_t msg_type;
|
||||
uint32_t reserved;
|
||||
uint64_t params[8];
|
||||
__be32 msg_type;
|
||||
__be32 reserved;
|
||||
__be64 params[8];
|
||||
};
|
||||
|
||||
struct opal_machine_check_event {
|
||||
|
Reference in New Issue
Block a user