[kvm-unit-tests PATCH] x86/s3.c: exit with status 0, not *0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Typo lead to confusing code. The s3 test was writing the contents of
address 0 to the output port, not explicitly the number zero!

Signed-off-by: Peter Feiner <pfeiner@xxxxxxxxxx>
---
 x86/s3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x86/s3.c b/x86/s3.c
index 8bf71da..c7d78c1 100644
--- a/x86/s3.c
+++ b/x86/s3.c
@@ -73,7 +73,7 @@ asm (
 	".global resume_end\n"
 	".code16\n"
 	"resume_start:\n"
-	"mov 0x0, %eax\n"
+	"mov $0x0, %eax\n"
 	"mov $0xf4, %dx\n"
 	"out %eax, %dx\n"
 	"1: hlt\n"
-- 
2.7.0.rc3.207.g0ac5344

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux