Commit
03957f58db "xen/const: Extend the existing macro BIT to take a
suffix in parameter" didn't convert all the callers of the macro BIT.
This will result to a build breakage when enabling Livepatch on arm64.
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
sval >>= lsb;
/* Extract the value bits and shift them to bit 0. */
- imm_mask = (BIT(lsb + len) - 1) >> lsb;
+ imm_mask = (BIT(lsb + len, UL) - 1) >> lsb;
imm = sval & imm_mask;
/* Update the instruction's immediate field. */