diff options
| author | Marc Zyngier <[email protected]> | 2017-06-09 12:49:30 +0100 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2017-06-15 09:44:57 +0100 |
| commit | d251f67a187c987b391751849c266e44d69bd31c (patch) | |
| tree | e42b2e1631d2750c5ea51fb24a937e2517d07350 /net/lapb/lapb_in.c | |
| parent | 6f2f10cabe73944488a62df16695c86e20d4c3f9 (diff) | |
arm64: Add a facility to turn an ESR syndrome into a sysreg encoding
It is often useful to compare an ESR syndrome reporting the trapping
of a system register with a value matching that system register.
Since encoding both the sysreg and the ESR version seem to be a bit
overkill, let's add a set of macros that convert an ESR value into
the corresponding sysreg encoding.
We handle both AArch32 and AArch64, taking advantage of identical
encodings between system registers and CP15 accessors.
Tested-by: Alexander Graf <[email protected]>
Acked-by: David Daney <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions