All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] Fix an inline asm constraint
@ 2017-08-25 21:12 Jim Mattson
  0 siblings, 0 replies; only message in thread
From: Jim Mattson @ 2017-08-25 21:12 UTC (permalink / raw)
  To: kvm; +Cc: Jim Mattson

An x86 move from memory to memory is illegal.

Signed-off-by: Jim Mattson <jmattson@google.com>
---
 lib/x86/desc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/x86/desc.c b/lib/x86/desc.c
index a527291..ffa5e44 100644
--- a/lib/x86/desc.c
+++ b/lib/x86/desc.c
@@ -250,7 +250,7 @@ unsigned exception_error_code(void)
 {
     unsigned short error_code;
 
-    asm("mov %%gs:6, %0" : "=rm"(error_code));
+    asm("mov %%gs:6, %0" : "=r"(error_code));
     return error_code;
 }
 
-- 
2.14.1.342.g6490525c54-goog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-25 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 21:12 [kvm-unit-tests PATCH] Fix an inline asm constraint Jim Mattson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.