diff options
author | Joe Bonasera <Joe.Bonasera@sun.com> | 2009-07-14 10:51:37 -0700 |
---|---|---|
committer | Joe Bonasera <Joe.Bonasera@sun.com> | 2009-07-14 10:51:37 -0700 |
commit | 2ef50f010f7a3a07eb5a9f6001b9843fd868e26b (patch) | |
tree | 517cbe696d6da0bbb76aef7f2db59c73a0a6c7e5 /usr/src/uts/intel/sys | |
parent | 349dcea37d1dc6e491c49c864c5e3773a4e3cae6 (diff) | |
download | illumos-gate-2ef50f010f7a3a07eb5a9f6001b9843fd868e26b.tar.gz |
6848982 32 bit kernel should use %cr8 to access the TPR when possible
Diffstat (limited to 'usr/src/uts/intel/sys')
-rw-r--r-- | usr/src/uts/intel/sys/archsystm.h | 2 | ||||
-rw-r--r-- | usr/src/uts/intel/sys/x86_archext.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/intel/sys/archsystm.h b/usr/src/uts/intel/sys/archsystm.h index fdd4f00478..92438659c0 100644 --- a/usr/src/uts/intel/sys/archsystm.h +++ b/usr/src/uts/intel/sys/archsystm.h @@ -45,6 +45,8 @@ extern int getpil(void); extern ulong_t getcr0(void); extern void setcr0(ulong_t); +extern ulong_t getcr8(void); +extern void setcr8(ulong_t); extern ulong_t getcr2(void); extern void iommu_cpu_nop(void); extern void clflush_insn(caddr_t addr); diff --git a/usr/src/uts/intel/sys/x86_archext.h b/usr/src/uts/intel/sys/x86_archext.h index f81804541b..e765c8a018 100644 --- a/usr/src/uts/intel/sys/x86_archext.h +++ b/usr/src/uts/intel/sys/x86_archext.h @@ -629,6 +629,8 @@ extern const char *cpuid_getchiprevstr(struct cpu *); extern uint32_t cpuid_getsockettype(struct cpu *); extern const char *cpuid_getsocketstr(struct cpu *); +extern int cpuid_have_cr8access(struct cpu *); + extern int cpuid_opteron_erratum(struct cpu *, uint_t); struct cpuid_info; |