summaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorJames Morse2018-01-15 20:38:55 +0100
committerCatalin Marinas2018-01-16 16:05:39 +0100
commit7a00d68ebe5f07cb1db17e7fedfd031f0d87e8bb (patch)
tree6a834afe4abdadf7511cbb598a5408e617217728 /kernel/panic.c
parentarm64: cpufeature: __this_cpu_has_cap() shouldn't stop early (diff)
downloadkernel-qcow2-linux-7a00d68ebe5f07cb1db17e7fedfd031f0d87e8bb.tar.gz
kernel-qcow2-linux-7a00d68ebe5f07cb1db17e7fedfd031f0d87e8bb.tar.xz
kernel-qcow2-linux-7a00d68ebe5f07cb1db17e7fedfd031f0d87e8bb.zip
arm64: sysreg: Move to use definitions for all the SCTLR bits
__cpu_setup() configures SCTLR_EL1 using some hard coded hex masks, and el2_setup() duplicates some this when setting RES1 bits. Lets make this the same as KVM's hyp_init, which uses named bits. First, we add definitions for all the SCTLR_EL{1,2} bits, the RES{1,0} bits, and those we want to set or clear. Add a build_bug checks to ensures all bits are either set or clear. This means we don't need to preserve endian-ness configuration generated elsewhere. Finally, move the head.S and proc.S users of these hard-coded masks over to the macro versions. Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'kernel/panic.c')
0 files changed, 0 insertions, 0 deletions