projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea4180
)
x86: add memory clobber to save/loadsegment
author
Jeremy Fitzhardinge
<
[email protected]
>
Wed, 25 Jun 2008 04:18:58 +0000
(
00:18
-0400)
committer
Ingo Molnar
<
[email protected]
>
Tue, 8 Jul 2008 11:10:23 +0000
(13:10 +0200)
Add "memory" clobbers to savesegment and loadsegment, since they can
affect memory accesses and we never want the compiler to reorder them
with respect to memory references.
Signed-off-by: Jeremy Fitzhardinge <
[email protected]
>
Cc: xen-devel <
[email protected]
>
Cc: Stephen Tweedie <
[email protected]
>
Cc: Eduardo Habkost <
[email protected]
>
Cc: Mark McLoughlin <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
include/asm-x86/system.h
patch
|
blob
|
history
diff --git
a/include/asm-x86/system.h
b/include/asm-x86/system.h
index bacfceedf1d2f47583461e9eaf4ba2a263aeba92..f686aa6abfe9530229b9721b16f162bd59df45af 100644
(file)
--- a/
include/asm-x86/system.h
+++ b/
include/asm-x86/system.h
@@
-153,14
+153,14
@@
extern void load_gs_index(unsigned);
"jmp 2b\n" \
".previous\n" \
_ASM_EXTABLE(1b,3b) \
- : :"r" (value), "r" (0))
+ : :"r" (value), "r" (0)
: "memory"
)
/*
* Save a segment register away
*/
#define savesegment(seg, value) \
- asm
volatile("mov %%" #seg ",%0":"=rm" (value)
)
+ asm
("mov %%" #seg ",%0":"=rm" (value) : : "memory"
)
static inline unsigned long get_limit(unsigned long segment)
{