mirror of https://github.com/l4ka/pistachio.git
- Fixed bug that had been introduced with the previous commit
This commit is contained in:
parent
30132e9248
commit
ffe30a6506
|
@ -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) */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue