Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120824
b: refs/heads/master
c: 6bdbfe9
h: refs/heads/master
v: v3
  • Loading branch information
Alok Kataria authored and H. Peter Anvin committed Nov 3, 2008
1 parent acdb20c commit 482fc59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 395628ef4ea12ff0748099f145363b5e33c69acb
refs/heads/master: 6bdbfe99916398dbb28d83833cc04757110f2738
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/cpu/vmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
"0"(VMWARE_HYPERVISOR_MAGIC), \
"1"(VMWARE_PORT_CMD_##cmd), \
"2"(VMWARE_HYPERVISOR_PORT), "3"(0) : \
"2"(VMWARE_HYPERVISOR_PORT), "3"(UINT_MAX) : \
"memory");

static inline int __vmware_platform(void)
Expand All @@ -53,7 +53,7 @@ static unsigned long __vmware_get_tsc_khz(void)

VMWARE_PORT(GETHZ, eax, ebx, ecx, edx);

if (eax == (uint32_t)-1)
if (ebx == UINT_MAX)
return 0;
tsc_hz = eax | (((uint64_t)ebx) << 32);
do_div(tsc_hz, 1000);
Expand Down

0 comments on commit 482fc59

Please sign in to comment.