[HVM] i8254: Fix bogus use of current
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 17 Jan 2007 15:03:27 +0000 (15:03 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 17 Jan 2007 15:03:27 +0000 (15:03 +0000)
commit4ff20a30344f24c7a246e6ceb3b631c9876c6a51
tree3714f48c6c1dfe6e487c742c1f7a752f1c5f5299
parentbba72b94d7ef7a00d278c12e9aed5caae0a62016
[HVM] i8254: Fix bogus use of current

The function pit_load_count incorrectly references current for
determining whether the channel number is zero.  This breaks
when starting a new guest because current points to dom0.

The fix is to explicitly pass the address for verification.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
xen/arch/x86/hvm/i8254.c