summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2013-01-15 12:26:04 -0800
committerAndy McFadden <fadden@android.com>2013-01-17 11:24:02 -0800
commit9b6687bbc6a3e2866fdfd8ac3c725138d4c7ecbf (patch)
tree4447b50ccb2cba04da81303074febde2646fffb4 /docs
parent3987f6c1793bd44305c491e9b57134a1df285599 (diff)
downloadframeworks_base-9b6687bbc6a3e2866fdfd8ac3c725138d4c7ecbf.zip
frameworks_base-9b6687bbc6a3e2866fdfd8ac3c725138d4c7ecbf.tar.gz
frameworks_base-9b6687bbc6a3e2866fdfd8ac3c725138d4c7ecbf.tar.bz2
Fix code snippet
One of the examples was incorrect (both here and in the original). http://b.android.com/42776 Change-Id: I2a218b724f50caf47d5185ef529ae8ab3104794f
Diffstat (limited to 'docs')
-rw-r--r--docs/html/training/articles/smp.jd4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/training/articles/smp.jd b/docs/html/training/articles/smp.jd
index 53d7879..d46787d 100644
--- a/docs/html/training/articles/smp.jd
+++ b/docs/html/training/articles/smp.jd
@@ -628,7 +628,7 @@ array.</p>
<p>The “loop_until” seen in previous examples has been expanded to show the load
of B into reg0. reg1 is assigned the numeric value 8, and reg2 is loaded from
-the address [A+reg1] (same location that thread 1 is accessing).</p>
+the address [A+reg1] (the same location that thread 1 is accessing).</p>
<p>This will not behave correctly because the load from B could be observed
after the load from [A+reg1]. We can fix this with a load/load barrier after
@@ -640,7 +640,7 @@ the loop, but on ARM we can also just do this:</p>
<th>Thread 2</th>
</tr>
<tr>
-<td><code>A = 41<br />
+<td><code>[A+8] = 41<br />
<em>store/store barrier</em><br />
B = 1 // “A is ready”</code></td>
<td><code>loop:<br />