Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f191eec5 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

Documentation: Fix memory-barriers.txt example



This commit fixes a broken example of overlapping stores in the
Documentation/memory-barriers.txt file.

Reported-by: default avatarNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 6f0c0580
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -251,12 +251,13 @@ And there are a number of things that _must_ or _must_not_ be assumed:

     And for:

	*A = X; Y = *A;
	*A = X; *(A + 4) = Y;

     we may get either of:
     we may get any of:

	STORE *A = X; Y = LOAD *A;
	STORE *A = Y = X;
	STORE *A = X; STORE *(A + 4) = Y;
	STORE *(A + 4) = Y; STORE *A = X;
	STORE {*A, *(A + 4) } = {X, Y};


=========================