diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-12-08 22:22:57 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-16 14:50:56 +1100 |
commit | 45c1436a000707a2da7e8e50bae43e1466dcf15a (patch) | |
tree | c53f10e11e14df4cb20f71e76bb173ff30b67a32 /include | |
parent | 61800f2dd0b81f3da31959e2f78a3efa4a5e0590 (diff) | |
download | skiboot-45c1436a000707a2da7e8e50bae43e1466dcf15a.zip skiboot-45c1436a000707a2da7e8e50bae43e1466dcf15a.tar.gz skiboot-45c1436a000707a2da7e8e50bae43e1466dcf15a.tar.bz2 |
memconsole: make endian-clean
Convert memconsole dt construction and in-memory tables to use
explicit endian conversions.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/console.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/console.h b/include/console.h index 230b825..61448e2 100644 --- a/include/console.h +++ b/include/console.h @@ -14,17 +14,17 @@ * (This is v3 of the format, the previous one sucked) */ struct memcons { - uint64_t magic; + __be64 magic; #define MEMCONS_MAGIC 0x6630696567726173LL - uint64_t obuf_phys; - uint64_t ibuf_phys; - uint32_t obuf_size; - uint32_t ibuf_size; - uint32_t out_pos; + __be64 obuf_phys; + __be64 ibuf_phys; + __be32 obuf_size; + __be32 ibuf_size; + __be32 out_pos; #define MEMCONS_OUT_POS_WRAP 0x80000000u #define MEMCONS_OUT_POS_MASK 0x00ffffffu - uint32_t in_prod; - uint32_t in_cons; + __be32 in_prod; + __be32 in_cons; }; extern struct memcons memcons; |