diff options
author | Julien Thierry <[email protected]> | 2019-01-31 14:58:46 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2019-02-06 10:05:18 +0000 |
commit | 133d05186325ce04494ea6488a6b86e50a446c12 (patch) | |
tree | 3d9b43fc48c46a1d94978aa6e20dfaae32920cdc /drivers/usb/cdns3/cdns3-debug.h | |
parent | cdbc81ddef43c8fdcbd3a26e1a7530c70b629cfc (diff) |
arm64: Make PMR part of task context
In order to replace PSR.I interrupt disabling/enabling with ICC_PMR_EL1
interrupt masking, ICC_PMR_EL1 needs to be saved/restored when
taking/returning from an exception. This mimics the way hardware saves
and restores PSR.I bit in spsr_el1 for exceptions and ERET.
Add PMR to the registers to save in the pt_regs struct upon kernel entry,
and restore it before ERET. Also, initialize it to a sane value when
creating new tasks.
Signed-off-by: Julien Thierry <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Reviewed-by: Marc Zyngier <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Dave Martin <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions