From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 09 Jul 2010 13:53:50 +0200 Subject: [U-Boot] [PATCH V2 3/6] mv_egiga: bugfix: DMA issue fixed using volatile In-Reply-To: References: <1278657259-23678-1-git-send-email-albert.aribaud@free.fr> <1278657259-23678-2-git-send-email-albert.aribaud@free.fr> <1278657259-23678-3-git-send-email-albert.aribaud@free.fr> <1278657259-23678-4-git-send-email-albert.aribaud@free.fr> <4C36F1C3.5060806@free.fr> Message-ID: <4C370DCE.2020108@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 09/07/2010 13:11, Prafulla Wadaskar a ?crit : > You can use volatile qualifier for the variables in DMA specific code instead of modifying structures, > Try to use memory barrier or something like that- > Some ref : http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html > may be someone c-expert on the list can suggest better Seems we've followed the same line of reasoning. :) I'll look into forcing a sequence point without resorting to asm. Amicalement, -- Albert.