• Robin Murphy's avatar
    arm64: update 32-bit kuser helpers to ARMv8 · d0f38f91
    Robin Murphy authored
    This patch updates the barrier semantics in the kuser helper functions
    to take advantage of the ARMv8 additions to AArch32, which are
    guaranteed to be available in situations where these functions will be
    called.
    
    Note that this slightly changes the cmpxchg functions in that they are
    no longer necessarily full barriers if they return 1. However, the
    documentation only states they include their own barriers "as needed",
    not that they are obligated to act as a full barrier for the caller.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    CC: Matthew Leach <matthew.leach@arm.com>
    CC: Dave Martin <dave.martin@arm.com>
    CC: Mark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    d0f38f91
kuser32.S 3.53 KB