vserver 2.0 rc7
[linux-2.6.git] / arch / ppc64 / mm / stab.c
index 38155a2..df4bbe1 100644 (file)
 #include <asm/paca.h>
 #include <asm/cputable.h>
 
+struct stab_entry {
+       unsigned long esid_data;
+       unsigned long vsid_data;
+};
+
 /* Both the segment table and SLB code uses the following cache */
 #define NR_STAB_CACHE_ENTRIES 8
 DEFINE_PER_CPU(long, stab_cache_ptr);
@@ -227,7 +232,7 @@ void stab_initialize(unsigned long stab)
 {
        unsigned long vsid = get_kernel_vsid(KERNELBASE);
 
-       if (cur_cpu_spec->cpu_features & CPU_FTR_SLB) {
+       if (cpu_has_feature(CPU_FTR_SLB)) {
                slb_initialize();
        } else {
                asm volatile("isync; slbia; isync":::"memory");