mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-05 18:41:21 +00:00
On a first look, the system register trapping code is quite straightforward - match the register and call a handler. But looking a bit more closely, with the intention of adding a new one, it isn't - matching is based on opaque magic numbers and handlers have a lot of duplication. This patch tries to resolve both of these by hoisting common functionality up towards common code and using S3 encodings for the register matching. It also moves things around a bit to make them more reusable in future. Change-Id: Ia69289bfb16615312cc7adcc5cc3e319174b1bf0 Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>