diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-12-08 22:22:48 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-16 14:50:56 +1100 |
commit | 518e55426f4ae7298eb13f8b64e1c6839131f3d7 (patch) | |
tree | b547a355d108cdf269f96112577e3070047df1cf /hdata/test | |
parent | c47b2ffdd5c5116bd4782df388cfca4d89189dff (diff) | |
download | skiboot-518e55426f4ae7298eb13f8b64e1c6839131f3d7.zip skiboot-518e55426f4ae7298eb13f8b64e1c6839131f3d7.tar.gz skiboot-518e55426f4ae7298eb13f8b64e1c6839131f3d7.tar.bz2 |
spira: fix endian conversions in spira data structures
Labels can't be used for static initialisers that require endian
conversion. Use constants for these.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hdata/test')
-rw-r--r-- | hdata/test/hdata_to_dt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c index 4605d50..11b7a3a 100644 --- a/hdata/test/hdata_to_dt.c +++ b/hdata/test/hdata_to_dt.c @@ -67,6 +67,9 @@ unsigned long tb_hz = 512000000; #define SPR_PVR 0x11f /* RO: Processor version register */ +#define MSR_SF 0x8000000000000000ULL +#define MSR_HV 0x1000000000000000ULL + #define __CPU_H struct cpu_thread { uint32_t pir; |