diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-05-13 10:26:10 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-06-22 19:55:05 +0100 |
commit | 5fa9da5043a81b9eea5d4522d1371455bf64894a (patch) | |
tree | 8d34aa442332ab6b7e71d9edf99341db70590e51 /arch/arm/kernel/process.c | |
parent | e6a9dc6129d23cd3025e841c4e13a70910a37135 (diff) | |
download | linux-5fa9da5043a81b9eea5d4522d1371455bf64894a.tar.bz2 |
ARM: get rid of horrible *(unsigned int *)(regs + 1)
Get rid of the horrible "*(unsigned int *)(regs + 1)" to get at the
parent context domain access register value, instead using the newly
introduced svc_pt_regs structure.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel/process.c')
-rw-r--r-- | arch/arm/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 4a803c5a1ff7..f1c720c0d568 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -106,7 +106,7 @@ void __show_regs(struct pt_regs *regs) if (user_mode(regs)) domain = DACR_UACCESS_ENABLE; else - domain = *(unsigned int *)(regs + 1); + domain = to_svc_pt_regs(regs)->dacr; #else domain = get_domain(); #endif |