#[repr(u64)]
pub enum Value {
    DisableTrapGeneralExceptionsToEl2,
    EnableTrapGeneralExceptionsToEl2,
}
Expand description

Trap General Exceptions, from EL0.

If enabled:

  • When EL2 is not enabled in the current Security state, this control has no effect on execution at EL0.

  • When EL2 is enabled in the current Security state, in all cases:

    • All exceptions that would be routed to EL1 are routed to EL2.
    • If EL1 is using AArch64, the SCTLR_EL1.M field is treated as being 0 for all purposes other than returning the result of a direct read of SCTLR_EL1.
    • If EL1 is using AArch32, the SCTLR.M field is treated as being 0 for all purposes other than returning the result of a direct read of SCTLR.
    • All virtual interrupts are disabled.
    • Any IMPLEMENTATION DEFINED mechanisms for signaling virtual interrupts are disabled.
    • An exception return to EL1 is treated as an illegal exception return.
    • The MDCR_EL2.{TDRA, TDOSA, TDA, TDE} fields are treated as being 1 for all purposes other than returning the result of a direct read of MDCR_EL2.
  • In addition, when EL2 is enabled in the current Security state, if:

    • HCR_EL2.E2H is 0, the Effective values of the HCR_EL2.{FMO, IMO, AMO} fields are 1.
    • HCR_EL2.E2H is 1, the Effective values of the HCR_EL2.{FMO, IMO, AMO} fields are 0.
  • For further information on the behavior of this bit when E2H is 1, see ‘Behavior of HCR_EL2.E2H’.

Variants

DisableTrapGeneralExceptionsToEl2

EnableTrapGeneralExceptionsToEl2

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.