diff options
| author | Anup Patel <[email protected]> | 2023-02-09 09:15:19 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-02-09 09:31:10 +0530 |
| commit | aa5dafcb5bfc04f8509a04291402d86d6b5c36d5 (patch) | |
| tree | b8a19e75960e40e17a3b7263d96db1f7119c956a /lib/utils/timer/objects.mk | |
| parent | b224ddb41fe1f9cbdfb246ebf22036ae1fe3f40f (diff) | |
include: sbi: Fix BSWAPx() macros for big-endian host
The BSWAPx() macros won't do any swapping for big-endian host
because the EXTRACT_BYTE() macro will pickup bytes in reverse
order. Also, the EXTRACT_BYTE() will generate compile error
for constants.
To fix this, we get remove the EXTRACT_BYTE() macro and re-write
BSWAPx() using simple mask and shift operations.
Fixes: 09b34d8cca51 ("include: Add support for byteorder/endianness
conversion")
Reported-by: Samuel Holland <[email protected]>
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/objects.mk')
0 files changed, 0 insertions, 0 deletions
