diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2005-04-28 08:13:19 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2005-04-28 08:13:19 +0000 |
commit | cb5a9ccd732dad2fb703d20cb1775266c9a916df (patch) | |
tree | 6d64ad42ff8aec2fef5909520668bd5172f0949c /sys/i386/include/pmc_mdep.h | |
parent | b38862d9b3350743b801238ea0108b7ae70baabf (diff) | |
download | FreeBSD-src-cb5a9ccd732dad2fb703d20cb1775266c9a916df.zip FreeBSD-src-cb5a9ccd732dad2fb703d20cb1775266c9a916df.tar.gz |
Return the correct register number in the 'get_msr()' MD function.
Only allow a process to use the x86 RDPMC instruction if it has
allocated and attached a PMC to itself.
Inform the MD layer of the "pseudo context switch out" that needs
to be done when the last thread of a process is exiting.
Diffstat (limited to 'sys/i386/include/pmc_mdep.h')
-rw-r--r-- | sys/i386/include/pmc_mdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/include/pmc_mdep.h b/sys/i386/include/pmc_mdep.h index 84f75d7..8b25e1e 100644 --- a/sys/i386/include/pmc_mdep.h +++ b/sys/i386/include/pmc_mdep.h @@ -123,6 +123,9 @@ #define P4_PERFCTR_MASK 0xFFFFFFFFFFLL /* 40 bits */ +#define P4_CCCR_MSR_FIRST 0x360 /* MSR_BPU_CCCR0 */ +#define P4_PERFCTR_MSR_FIRST 0x300 /* MSR_BPU_COUNTER0 */ + /* Intel PPro, Celeron, P-II, P-III, Pentium-M PMCS */ #define P6_NPMCS 3 /* 1 TSC + 2 PMCs */ |