[Skiboot] [PATCH 13/16] hdata: MS AREA endian fix
Nicholas Piggin
npiggin at gmail.com
Mon Apr 27 21:08:10 AEST 2020
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
hdata/memory.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hdata/memory.c b/hdata/memory.c
index 7ce927502..a9db9d744 100755
--- a/hdata/memory.c
+++ b/hdata/memory.c
@@ -512,11 +512,11 @@ static void add_memory_buffer_mmio(const struct HDIF_common_hdr *msarea)
const struct HDIF_array_hdr *array;
unsigned int i, count, ranges = 0;
struct dt_node *membuf;
- uint64_t *reg, *flags;
+ beint64_t *reg, *flags;
- if (be32_to_cpu(msarea->version) < 0x50) {
+ if (be16_to_cpu(msarea->version) < 0x50) {
prlog(PR_WARNING, "MS AREA: Inconsistent MSAREA version %x for P9P system",
- be32_to_cpu(msarea->version));
+ be16_to_cpu(msarea->version));
return;
}
--
2.23.0
More information about the Skiboot
mailing list