aboutsummaryrefslogtreecommitdiff
path: root/hw/dts.c
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/dts.c
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/dts.c')
-rw-r--r--hw/dts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/dts.c b/hw/dts.c
index c21c5c7..b72516a 100644
--- a/hw/dts.c
+++ b/hw/dts.c
@@ -183,7 +183,9 @@ static void dts_async_read_temp(struct timer *t __unused, void *data,
dctl_clear_special_wakeup(cpu);
check_sensor_read(cpu->token);
- rc = opal_queue_msg(OPAL_MSG_ASYNC_COMP, NULL, NULL, cpu->token, rc);
+ rc = opal_queue_msg(OPAL_MSG_ASYNC_COMP, NULL, NULL,
+ cpu_to_be64(cpu->token),
+ cpu_to_be64(rc));
if (rc)
prerror("Failed to queue async message\n");