aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig.debug
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2017-02-02 17:32:15 +0000
committerWill Deacon <will.deacon@arm.com>2017-02-02 18:34:38 +0000
commit965861d66fad6ce07bd5c5ecbe6514bc50b8fc11 (patch)
tree5ef91fe1935cb720a522f61c16c6cd34f5f53a05 /arch/arm64/Kconfig.debug
parentarm64: fix erroneous __raw_read_system_reg() cases (diff)
downloadlinux-dev-965861d66fad6ce07bd5c5ecbe6514bc50b8fc11.tar.xz
linux-dev-965861d66fad6ce07bd5c5ecbe6514bc50b8fc11.zip
arm64: ensure __raw_read_system_reg() is self-consistent
We recently discovered that __raw_read_system_reg() erroneously mapped sysreg IDs to the wrong registers. To ensure that we don't get hit by a similar issue in future, this patch makes __raw_read_system_reg() use a macro for each case statement, ensuring that each case reads the correct register. To ensure that this patch hasn't introduced an issue, I've binary-diffed the object files before and after this patch. No code or data sections differ (though some debug section differ due to line numbering changing). Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions