[Pdbg] [PATCH 06/19] libsbefifo: Fix marshalling for putscom chipop
Amitay Isaacs
amitay at ozlabs.org
Thu Jul 2 13:39:05 AEST 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libsbefifo/cmd_scom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libsbefifo/cmd_scom.c b/libsbefifo/cmd_scom.c
index bb44e5e..935a00f 100644
--- a/libsbefifo/cmd_scom.c
+++ b/libsbefifo/cmd_scom.c
@@ -98,8 +98,8 @@ static int sbefifo_scom_put_push(uint64_t addr, uint64_t value, uint8_t **buf, u
msg[1] = htobe32(cmd);
msg[2] = htobe32(addr >> 32);
msg[3] = htobe32(addr & 0xffffffff);
- msg[2] = htobe32(value >> 32);
- msg[3] = htobe32(value & 0xffffffff);
+ msg[4] = htobe32(value >> 32);
+ msg[5] = htobe32(value & 0xffffffff);
*buf = (uint8_t *)msg;
return 0;
--
2.26.2
More information about the Pdbg
mailing list