|
@@ -287,10 +287,10 @@
|
|
/* Generic bitfield macros and masks */
|
|
/* Generic bitfield macros and masks */
|
|
|
|
|
|
#define ACPI_GET_BITS(source_ptr, position, mask) \
|
|
#define ACPI_GET_BITS(source_ptr, position, mask) \
|
|
- ((*source_ptr >> position) & mask)
|
|
|
|
|
|
+ ((*(source_ptr) >> (position)) & (mask))
|
|
|
|
|
|
#define ACPI_SET_BITS(target_ptr, position, mask, value) \
|
|
#define ACPI_SET_BITS(target_ptr, position, mask, value) \
|
|
- (*target_ptr |= ((value & mask) << position))
|
|
|
|
|
|
+ (*(target_ptr) |= (((value) & (mask)) << (position)))
|
|
|
|
|
|
#define ACPI_1BIT_MASK 0x00000001
|
|
#define ACPI_1BIT_MASK 0x00000001
|
|
#define ACPI_2BIT_MASK 0x00000003
|
|
#define ACPI_2BIT_MASK 0x00000003
|