aboutsummaryrefslogtreecommitdiff
path: root/hw/ipmi
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:22:46 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commit789624ffef8b6a90154a120408095333dad0a657 (patch)
tree9bb28e087513de2d62e5ecd4fc498d54868a0d64 /hw/ipmi
parent1b9a449d5d48de9520befd09892d85d6aec7ba62 (diff)
downloadskiboot-789624ffef8b6a90154a120408095333dad0a657.zip
skiboot-789624ffef8b6a90154a120408095333dad0a657.tar.gz
skiboot-789624ffef8b6a90154a120408095333dad0a657.tar.bz2
opal-msg: endian fixes for opal-msg.c and opal_queue_msg callers
Reported-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/ipmi')
-rw-r--r--hw/ipmi/ipmi-sel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index 794aa38..60df9d9 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -496,7 +496,8 @@ static void sel_power(uint8_t power, void *context __unused)
prlog(PR_NOTICE, "Host not up, shutting down now\n");
platform.cec_power_down(IPMI_CHASSIS_PWR_DOWN);
} else {
- opal_queue_msg(OPAL_MSG_SHUTDOWN, NULL, NULL, SOFT_OFF);
+ opal_queue_msg(OPAL_MSG_SHUTDOWN, NULL, NULL,
+ cpu_to_be64(SOFT_OFF));
}
break;
@@ -506,7 +507,8 @@ static void sel_power(uint8_t power, void *context __unused)
prlog(PR_NOTICE, "Host not up, rebooting now\n");
platform.cec_reboot();
} else {
- opal_queue_msg(OPAL_MSG_SHUTDOWN, NULL, NULL, SOFT_REBOOT);
+ opal_queue_msg(OPAL_MSG_SHUTDOWN, NULL, NULL,
+ cpu_to_be64(SOFT_REBOOT));
}
break;