From 1f8125a41683eb96aca9414616b6eaec7f05e6ac Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Fri, 2 Dec 2016 12:18:39 -0500 Subject: [PATCH] x86: fix irq_lock/unlock ordering bug Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc537712abaeb5dfbb27ced924fe6ccc1f611c for the ARM fix for a complete description of the issue and fix. Change-Id: Ic92a6b33f62a938d2252d68eccc55a5fb07c9114 Signed-off-by: Benjamin Walsh --- include/arch/x86/asm_inline_gcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/arch/x86/asm_inline_gcc.h b/include/arch/x86/asm_inline_gcc.h index f84ed21d78c..97880c537b9 100644 --- a/include/arch/x86/asm_inline_gcc.h +++ b/include/arch/x86/asm_inline_gcc.h @@ -82,7 +82,7 @@ static ALWAYS_INLINE void _do_irq_unlock(void) { __asm__ volatile ( "sti;\n\t" - : : + : : : "memory" ); }