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

Commit 756ba7f0 authored by Sami Tolvanen's avatar Sami Tolvanen
Browse files

ANDROID: x86/cpu/vmware: use the full form of inl in VMWARE_PORT



LLVM's assembler doesn't accept the short form inl (%%dx) instruction,
but instead insists on the output register to be explicitly specified:

  <inline asm>:1:7: error: invalid operand for instruction
          inl (%dx)
             ^
  LLVM ERROR: Error parsing inline asm

Bug: 133186739
Bug: 145297900
Change-Id: I0519034f4a66bd72f23d206d4638578836a49ff5
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 5199ee37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@
#define VMWARE_PORT_CMD_VCPU_RESERVED	31

#define VMWARE_PORT(cmd, eax, ebx, ecx, edx)				\
	__asm__("inl (%%dx)" :						\
	__asm__("inl (%%dx), %%eax" :					\
			"=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) :	\
			"0"(VMWARE_HYPERVISOR_MAGIC),			\
			"1"(VMWARE_PORT_CMD_##cmd),			\