-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff Dike
authored and
Linus Torvalds
committed
Nov 3, 2006
1 parent
d9666cc
commit 0dfc188
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: d2c89a4284ea4ecfba77c6f2d7d6f96d52e801e5 | ||
refs/heads/master: 53b173327d283b9bdbfb0c3b6de6f0eb197819d6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef __SYSDEP_I386_BARRIER_H | ||
#define __SYSDEP_I386_BARRIER_H | ||
|
||
/* Copied from include/asm-i386 for use by userspace. i386 has the option | ||
* of using mfence, but I'm just using this, which works everywhere, for now. | ||
*/ | ||
#define mb() asm volatile("lock; addl $0,0(%esp)") | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef __SYSDEP_X86_64_BARRIER_H | ||
#define __SYSDEP_X86_64_BARRIER_H | ||
|
||
/* Copied from include/asm-x86_64 for use by userspace. */ | ||
#define mb() asm volatile("mfence":::"memory") | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters