DEFINE SERIAL_DRIVER_ENABLE = TRUE\r
DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE\r
\r
+ # For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter.\r
+ # This is recommended way to get the time, and also how BaseCpuTimerLib works.\r
+ # However, some CPU doesn't support this feature, so disable it by default.\r
+ DEFINE CPU_TIMER_LIB_ENABLE = FALSE\r
+\r
[BuildOptions]\r
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
#\r
# Platform\r
#\r
-!if $(UNIVERSAL_PAYLOAD) == TRUE\r
+!if $(CPU_TIMER_LIB_ENABLE) == TRUE\r
TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf\r
!else\r
TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf\r