1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-06 22:49:18 +01:00
Files
u-boot-megous/include
Vignesh R e519c61606 bitops: Fix GENMASK definition for Sandbox
In arch/sandbox/include/asm/types.h we have
Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as
CONFIG_PHYS64 is not set

This messes up the current logic of GENMASK macro due to mismatch b/w
size of unsigned long (64 bit) and that of BITS_PER_LONG.
Fix this by using CONFIG_SANDBOX_BITS_PER_LONG which is set to 64/32
based on the host machine on which its being compiled.

Without this patch:
GENMASK(14,0) => 0x7fffffffffff
After this patch:
GENMASK(14,0) => 0x7fff

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-02-07 15:33:21 +05:30
..
2018-11-26 08:25:33 -05:00
2018-11-27 21:06:53 +05:30
2018-11-14 09:16:27 -08:00
2018-09-29 11:49:35 -06:00
2018-09-10 20:48:16 -04:00
2018-12-07 08:13:45 -05:00
2018-12-07 08:13:45 -05:00
2018-11-10 08:16:30 -05:00
2018-07-26 14:08:22 -05:00
2018-09-23 21:55:30 +02:00
2018-09-23 21:55:30 +02:00
2018-06-13 07:49:12 -04:00
2018-12-06 23:26:32 -05:00
2018-12-13 16:32:49 -07:00
2019-01-01 14:12:18 +01:00
2018-10-22 13:01:27 +02:00
2019-01-01 14:12:18 +01:00
2018-12-05 06:01:35 -07:00
2018-04-06 17:04:33 -04:00
2019-02-02 08:19:17 -05:00
2019-01-14 17:47:13 -07:00
2018-09-18 00:01:18 -06:00
2018-10-02 22:12:32 +05:30
2019-01-24 11:35:30 -06:00
2018-10-09 04:40:27 -06:00
2019-01-18 22:19:09 +05:30
2018-12-05 06:06:44 -07:00
2018-10-07 11:04:01 -04:00
2018-07-19 16:31:37 -04:00
2018-11-27 21:06:53 +05:30
2019-02-01 16:59:12 +01:00
2019-01-01 14:12:18 +01:00
2018-07-20 15:55:05 -04:00
2018-10-09 04:40:27 -06:00
2018-09-28 18:26:32 +02:00