[PATCH v1 05/18] arm64/sysreg: add PIR*_ELx registers

Mark Brown broonie at kernel.org
Thu Mar 16 10:23:48 PDT 2023


On Thu, Mar 09, 2023 at 02:52:33PM +0000, Joey Gouly wrote:

> +#define PIE_NONE_O	0x0
> +#define PIE_R_O		0x1
> +#define PIE_X_O		0x2
> +#define PIE_RX_O	0x3
> +#define PIE_RW_O	0x5
> +#define PIE_RWnX_O	0x6
> +#define PIE_RWX_O	0x7
> +#define PIE_R		0x8
> +#define PIE_GCS		0x9
> +#define PIE_RX		0xa
> +#define PIE_RW		0xc
> +#define PIE_RWX		0xe

> +#define PIRx_ELx_PERMIDX(perm, idx)	((perm) << ((idx) * 4))

This is bikeshedding but every time I look at the uses of this macro I
find myself trying to read it as index, permission rather than the way
it is - that's the order for both assignment statements and #defines in
headers so it's what my brain is reaching for.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230316/1cecc0b3/attachment.sig>


More information about the linux-arm-kernel mailing list