1
1

bugfix: added configure check for header file 'asm/intrinsics.h' and definition of '_IA64_REG_AR_ITC' which required to use the ITC timer on IA64/Linux

This commit was SVN r20621.
Этот коммит содержится в:
Matthias Jurenz 2009-02-23 12:41:22 +00:00
родитель cde4ab5c32
Коммит a1608ecd60
2 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -229,4 +229,7 @@
5.4.7 5.4.7
- fixed faulty timer selection in configure - fixed faulty timer selection in configure
(the cycle counter timer is not available on all Linux platforms) (the cycle counter timer is not available on all Linux platforms)
- added configure check for header file 'asm/intrinsics.h' and
definition of '_IA64_REG_AR_ITC' which are required to use the
ITC timer on IA64/Linux

Просмотреть файл

@ -1733,11 +1733,19 @@ AC_DEFUN([ACVT_PLATFORM],
pform_timer=TIMER_GETTIMEOFDAY pform_timer=TIMER_GETTIMEOFDAY
case $host_cpu in case $host_cpu in
i*86 | x86* | ia64 | powerpc*) i*86 | x86* | powerpc*)
AC_DEFINE([TIMER_CYCLE_COUNTER], [3], [Cycle counter (e.g. TSC)]) AC_DEFINE([TIMER_CYCLE_COUNTER], [3], [Cycle counter (e.g. TSC)])
pform_timer=TIMER_CYCLE_COUNTER pform_timer=TIMER_CYCLE_COUNTER
;; ;;
*) ia64)
AC_CHECK_HEADERS([asm/intrinsics.h],
[
AC_CHECK_DECL([_IA64_REG_AR_ITC],
[
AC_DEFINE([TIMER_CYCLE_COUNTER], [3], [Cycle counter (e.g. ITC)])
pform_timer=TIMER_CYCLE_COUNTER
], [], [#include <asm/intrinsics.h>])
])
;; ;;
esac esac
;; ;;