PKEY_BITS_MASK
amr_bits = (r) & PKEY_BITS_MASK; \
if ((rights & PKEY_BITS_MASK) == 0)
else if ((rights & PKEY_BITS_MASK) == PKEY_DISABLE_WRITE)
amr &= ~(PKEY_BITS_MASK << shift);
amr |= (rights & PKEY_BITS_MASK) << shift;