1. 02 9月, 2020 8 次提交
  2. 02 11月, 2017 2 次提交
    • J
      arm64: Move the async/fiq helpers to explicitly set process context flags · 41bd5b5d
      James Morse 提交于
      Remove the local_{async,fiq}_{en,dis}able macros as they don't respect
      our newly defined order and are only used to set the flags for process
      context when we bring CPUs online.
      
      Add a helper to do this. The IRQ flag varies as we want it masked on
      the boot CPU until we are ready to handle interrupts.
      The boot CPU unmasks SError during early boot once it can print an error
      message. If we can print an error message about SError, we can do the
      same for FIQ. Debug exceptions are already enabled by __cpu_setup(),
      which has also configured MDSCR_EL1 to disable MDE and KDE.
      Signed-off-by: NJames Morse <james.morse@arm.com>
      Reviewed-by: NJulien Thierry <julien.thierry@arm.com>
      Reviewed-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      41bd5b5d
    • J
      arm64: introduce an order for exceptions · 65be7a1b
      James Morse 提交于
      Currently SError is always masked in the kernel. To support RAS exceptions
      using SError on hardware with the v8.2 RAS Extensions we need to unmask
      SError as much as possible.
      
      Let's define an order for masking and unmasking exceptions. 'dai' is
      memorable and effectively what we have today.
      
      Disabling debug exceptions should cause all other exceptions to be masked.
      Masking SError should mask irq, but not disable debug exceptions.
      Masking irqs has no side effects for other flags. Keeping to this order
      makes it easier for entry.S to know which exceptions should be unmasked.
      
      FIQ is never expected, but we mask it when we mask debug exceptions, and
      unmask it at all other times.
      
      Given masking debug exceptions masks everything, we don't need macros
      to save/restore that bit independently. Remove them and switch the last
      caller over to use the daif calls.
      Signed-off-by: NJames Morse <james.morse@arm.com>
      Reviewed-by: NJulien Thierry <julien.thierry@arm.com>
      Reviewed-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      65be7a1b
  3. 19 7月, 2016 1 次提交
  4. 26 2月, 2014 1 次提交
  5. 26 11月, 2013 1 次提交
  6. 17 9月, 2012 1 次提交