Skip to content
Snippets Groups Projects
Commit 88ec11b0 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARC: document memory clobber in irq control macros


Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 9fb92eb1
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,15 @@
/******************************************************************
* IRQ Control Macros
*
* All of them have "memory" clobber (compiler barrier) which is needed to
* ensure that LD/ST requiring irq safetly (R-M-W when LLSC is not available)
* are redone after IRQs are re-enabled (and gcc doesn't reuse stale register)
*
* Noted at the time of Abilis Timer List corruption
* Orig Bug + Rejected solution : https://lkml.org/lkml/2013/3/29/67
* Reasoning : https://lkml.org/lkml/2013/4/8/15
*
******************************************************************/
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment