- Fixed bug that had been introduced with the previous commit

This commit is contained in:
Philipp Kupferschmied 2008-08-05 14:02:31 +02:00
parent 30132e9248
commit ffe30a6506
1 changed files with 19 additions and 14 deletions

View File

@ -116,11 +116,6 @@ INLINE tracebuffer_t * get_tracebuffer (void)
* Access to performance monitoring counters
*/
# define TBUF_PMC_SEL_0
# define TBUF_PMC_SEL_1
# define TBUF_RDPMC_0
# define TBUF_RDPMC_1
# if defined(CONFIG_TBUF_PERFMON)
# if defined(CONFIG_CPU_X86_I686) || defined(CONFIG_CPU_X86_K8)
@ -130,8 +125,18 @@ INLINE tracebuffer_t * get_tracebuffer (void)
/* PMC_MSR_IQ_COUNTER 0 and 2 */
# define TBUF_PMC_SEL_0 " mov $12, %1 \n"
# define TBUF_PMC_SEL_1 " add $ 2, %1 \n"
# else
# define TBUF_PMC_SEL_0
# define TBUF_PMC_SEL_1
# endif
# else
# define TBUF_PMC_SEL_0
# define TBUF_PMC_SEL_1
# define TBUF_RDPMC_0
# define TBUF_RDPMC_1
# endif /* defined(CONFIG_TBUF_PERFMON) */