[Skiboot] [PATCH 14/16] platform/blackbird: endian fix
Nicholas Piggin
npiggin at gmail.com
Mon Apr 27 21:08:11 AEST 2020
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
platforms/astbmc/blackbird.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platforms/astbmc/blackbird.c b/platforms/astbmc/blackbird.c
index 41de010f7..d7a1f81d6 100644
--- a/platforms/astbmc/blackbird.c
+++ b/platforms/astbmc/blackbird.c
@@ -61,7 +61,7 @@ static int64_t blackbird_write_oppanel_async(uint64_t async_token __unused,
return OPAL_PARAMETER;
line = (void *) be64_to_cpu(lines[0].line);
- len = lines[0].line_len;
+ len = be64_to_cpu(lines[0].line_len);
if (len > 0)
lpc_probe_write(OPAL_LPC_IO, 0x80, line[0], 1);
--
2.23.0
More information about the Skiboot
mailing list