• Achin Gupta's avatar
    Precede a 'sev' with a 'dsb' in bakery lock code · 66ce001e
    Achin Gupta authored
    This patch fixes a bug in the bakery lock implementation where a data
    synchronisation barrier instruction is not issued before sending an event as
    mandated by the ARMv8 ARM. This can cause a event to be signalled before the
    related memory accesses have completed resulting in erroneous execution.
    
    Fixes ARM-software/tf-issues#272
    
    Change-Id: I5ce02bf70afb001d967b9fa4c3f77442931d5349
    66ce001e
bakery_lock.c 6.42 KB