]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] vmx: Fix register constraint in launch code
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 23 Jan 2007 03:10:00 +0000 (14:10 +1100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Jan 2007 03:27:02 +0000 (19:27 -0800)
commite00154891137e3b0659556b877d45a16cabd700c
tree431b72f6cbdcca102eb619f4a00f8b9d0849a843
parent46fd906131bfae831b56a1e64dd94956626fc07c
[PATCH] vmx: Fix register constraint in launch code

Both "=r" and "=g" breaks my build on i386:

  $ make
    CC [M]  drivers/kvm/vmx.o
  {standard input}: Assembler messages:
  {standard input}:3318: Error: bad register name `%sil'
  make[1]: *** [drivers/kvm/vmx.o] Error 1
  make: *** [_module_drivers/kvm] Error 2

The reason is that setbe requires an 8-bit register but "=r" does not
constrain the target register to be one that has an 8-bit version on
i386.

According to

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10153

the correct constraint is "=q".

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/kvm/vmx.c