gummiboot: Add 32 bit compatible rdtsc asm
authorDarren Hart <dvhart@linux.intel.com>
Wed, 21 Aug 2013 16:31:03 +0000 (09:31 -0700)
committerKay Sievers <kay@vrfy.org>
Wed, 21 Aug 2013 17:01:07 +0000 (19:01 +0200)
commit612e086cfc1600f5654b1f472b96ed3bb78bf246
tree8b14d845a2a2a126bb5c5b2f54e37d1f9b6f21d8
parent5d85fe49d5f7c5bf4f0bb0485c25f945b3bd6e57
gummiboot: Add 32 bit compatible rdtsc asm

Gcc's inline asm constraints have different meanings on x86_64 and ia32.
Include a 32 bit version for the rdtsc function. Drop the empty 32 bit
version of time_usec as it and the cpuid function both function properly
when compiled for 32 bit systems.

Tested on the following CPU:
Intel(R) Atom(TM) CPU E640   @ 1.00GHz

A value of 1000000000 was detected.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: "Ylinen, Mikko" <mikko.ylinen@intel.com>
src/efi/gummiboot.c