aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:22:58 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commit1959efa66e9f9626f83a41a870057d8eb0426c54 (patch)
tree08619420f01d6cf562f4a2ee67eee5e91c0c5c1b /include
parent45c1436a000707a2da7e8e50bae43e1466dcf15a (diff)
downloadskiboot-1959efa66e9f9626f83a41a870057d8eb0426c54.zip
skiboot-1959efa66e9f9626f83a41a870057d8eb0426c54.tar.gz
skiboot-1959efa66e9f9626f83a41a870057d8eb0426c54.tar.bz2
debug descriptor: make endian-clean
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/debug_descriptor.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/debug_descriptor.h b/include/debug_descriptor.h
index 774c360..cbe9293 100644
--- a/include/debug_descriptor.h
+++ b/include/debug_descriptor.h
@@ -11,27 +11,27 @@
struct debug_descriptor {
u8 eye_catcher[8]; /* "OPALdbug" */
#define DEBUG_DESC_VERSION 1
- u32 version;
+ __be32 version;
u8 console_log_levels; /* high 4 bits in memory,
* low 4 bits driver (e.g. uart). */
u8 state_flags; /* various state flags - OPAL_BOOT_COMPLETE etc */
- u16 reserved2;
- u32 reserved[2];
+ __be16 reserved2;
+ __be32 reserved[2];
/* Memory console */
- u64 memcons_phys;
- u32 memcons_tce;
- u32 memcons_obuf_tce;
- u32 memcons_ibuf_tce;
+ __be64 memcons_phys;
+ __be32 memcons_tce;
+ __be32 memcons_obuf_tce;
+ __be32 memcons_ibuf_tce;
/* Traces */
- u64 trace_mask;
- u32 num_traces;
+ __be64 trace_mask;
+ __be32 num_traces;
#define DEBUG_DESC_MAX_TRACES 256
- u64 trace_phys[DEBUG_DESC_MAX_TRACES];
- u32 trace_size[DEBUG_DESC_MAX_TRACES];
- u32 trace_tce[DEBUG_DESC_MAX_TRACES];
- u16 trace_pir[DEBUG_DESC_MAX_TRACES];
+ __be64 trace_phys[DEBUG_DESC_MAX_TRACES];
+ __be32 trace_size[DEBUG_DESC_MAX_TRACES];
+ __be32 trace_tce[DEBUG_DESC_MAX_TRACES];
+ __be16 trace_pir[DEBUG_DESC_MAX_TRACES];
};
extern struct debug_descriptor debug_descriptor;