lib: utils: htif: Fix 32-bit build
authorBin Meng <bmeng.cn@gmail.com>
Tue, 18 Feb 2020 04:55:12 +0000 (20:55 -0800)
committerAnup Patel <anup@brainfault.org>
Tue, 18 Feb 2020 05:00:16 +0000 (10:30 +0530)
commitc66543d049d33b94f1915babaed6eb1f90e05f78
tree97ec272def1842d6f20e6888513dbf8a4203ed84
parent0b414532c41303ce42fa2b9cc4861c5b01e76b40
lib: utils: htif: Fix 32-bit build

When building 32-bit OpenSBI images, we get:

  lib/utils/sys/htif.c: In function '__check_fromhost':
  lib/utils/sys/htif.c:12:31: error: left shift count >= width of type
                                     [-Werror=shift-count-overflow]
   #define HTIF_DATA_MASK  ((1UL << HTIF_DATA_BITS) - 1)
                                 ^~

Fixes: c2f23cc6edd7 ("platform: Add Spike initial support")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/utils/sys/htif.c