• Mark Rutland's avatar
    arm64: add local_daif_inherit() · 51077e03
    Mark Rutland authored
    Some synchronous exceptions can be taken from a number of contexts,
    e.g. where IRQs may or may not be masked. In the entry assembly for
    these exceptions, we use the inherit_daif assembly macro to ensure
    that we only mask those exceptions which were masked when the exception
    was taken.
    
    So that we can do the same from C code, this patch adds a new
    local_daif_inherit() function, following the existing local_daif_*()
    naming scheme.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    [moved away from local_daif_restore()]
    Signed-off-by: default avatarJames Morse <james.morse@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    51077e03
daifflags.h 3.08 KB