coreboot-kgpe-d16/src
Julius Werner da3a146cae arm64: Make SPSR exception masking on EL2 transition explicit
The configuration of SPSR bits that mask processor exceptions is kinda
oddly hidden as an implict part of the transition() function right now.
It would be odd but not impossible for programs to want to be entered
with enabled exceptions, so let's move these bits to be explicitly set
by the caller like the rest of SPSR instead.

Also clear up some macro names. The SPSR[I] bit is currently defined as
SPSR_IRQ_ENABLE, which is particularly unfortunate since that bit
actually *disables* (masks) interrupts. The fact that there is an
additional SPSR_IRQ_MASK definition with the same value but a different
purpose doesn't really help. There's rarely a point to have all three of
xxx_SHIFT, xxx_MASK and xxx_VALUE macros for single-bit fields, so
simplify this to a single definition per bit. (Other macros in
lib_helpers.h should probably also be overhauled to conform, but I want
to wait and see how many of them really stay relevant after upcoming
changes first.)

BRANCH=None
BUG=None
TEST=None

Change-Id: Id126f70d365467e43b7f493c341542247e5026d2
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 715600c83aef9794d1674e8c3b62469bdc57f297
Original-Change-Id: I3edc4ee276feb8610a636ec7b4175706505d58bd
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/270785
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10250
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-05-19 20:35:10 +02:00
..
arch arm64: Make SPSR exception masking on EL2 transition explicit 2015-05-19 20:35:10 +02:00
console arm64: Reorganize payload entry code and related Kconfigs 2015-05-19 20:33:06 +02:00
cpu x86: garbage collect SMM programs 2015-05-19 10:36:48 +02:00
device resource: Adjust memory resources high earlier 2015-05-05 01:26:02 +02:00
drivers ivybridge native gfx init: Adjust state to be compatible with OPROM. 2015-05-19 16:24:05 +02:00
ec lenovo: Disable radio when suspending or turning off. 2015-05-14 15:08:52 +02:00
include regions: add more helpers 2015-05-19 10:36:43 +02:00
lib regions: add more helpers 2015-05-19 10:36:43 +02:00
mainboard arm64: Reorganize payload entry code and related Kconfigs 2015-05-19 20:33:28 +02:00
northbridge nehalem native gfx init: Adjust state to be compatible with OPROM. 2015-05-19 16:24:40 +02:00
soc arm64: Reorganize payload entry code and related Kconfigs 2015-05-19 20:33:28 +02:00
southbridge ibexpeak: Merge common NVS init 2015-05-15 08:44:59 +02:00
superio nuvoton/nct6776: there is no IRQ for LDN8 2015-05-17 14:33:51 +02:00
vendorcode vboot: remove vboot_context.h 2015-05-19 15:16:51 +02:00
Kconfig fmaptool: Introduce the fmd ("flashmap descriptor") language and compiler 2015-05-08 19:55:42 +02:00