diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2009-11-28 17:33:19 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2009-11-28 17:33:19 +0000 |
commit | 227f66048ee60b65d4683e77d9746c7c6b89cf44 (patch) | |
tree | 5e1aecc143405242d9ce520741a856e42d351fda /sys/powerpc/booke | |
parent | d9c18e56274beb0c8c989c2d0eb5d3b6562f9ec6 (diff) | |
download | src-227f66048ee60b65d4683e77d9746c7c6b89cf44.tar.gz src-227f66048ee60b65d4683e77d9746c7c6b89cf44.zip |
Add a CPU features framework on PowerPC and simplify CPU setup a little
more. This provides three new sysctls to user space:
hw.cpu_features - A bitmask of available CPU features
hw.floatingpoint - Whether or not there is hardware FP support
hw.altivec - Whether or not Altivec is available
PR: powerpc/139154
MFC after: 10 days
Notes
Notes:
svn path=/head/; revision=199886
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/machdep.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/powerpc/booke/machdep.c b/sys/powerpc/booke/machdep.c index 1eace0e8e607..9f5960b6daad 100644 --- a/sys/powerpc/booke/machdep.c +++ b/sys/powerpc/booke/machdep.c @@ -179,7 +179,6 @@ SYSCTL_INT(_machdep, CPU_CACHELINE, cacheline_size, CTLFLAG_RD, &cacheline_size, 0, ""); int hw_direct_map = 0; -int ppc64 = 0; static void cpu_e500_startup(void *); SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_e500_startup, NULL); |