ctrl_inl(CCN_CVR),
                ctrl_inl(CCN_PRR));
        printk("I-cache : n_ways=%d n_sets=%d way_incr=%d\n",
-               current_cpu_data.icache.ways,
-               current_cpu_data.icache.sets,
-               current_cpu_data.icache.way_incr);
+               boot_cpu_data.icache.ways,
+               boot_cpu_data.icache.sets,
+               boot_cpu_data.icache.way_incr);
        printk("I-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n",
-               current_cpu_data.icache.entry_mask,
-               current_cpu_data.icache.alias_mask,
-               current_cpu_data.icache.n_aliases);
+               boot_cpu_data.icache.entry_mask,
+               boot_cpu_data.icache.alias_mask,
+               boot_cpu_data.icache.n_aliases);
        printk("D-cache : n_ways=%d n_sets=%d way_incr=%d\n",
-               current_cpu_data.dcache.ways,
-               current_cpu_data.dcache.sets,
-               current_cpu_data.dcache.way_incr);
+               boot_cpu_data.dcache.ways,
+               boot_cpu_data.dcache.sets,
+               boot_cpu_data.dcache.way_incr);
        printk("D-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n",
-               current_cpu_data.dcache.entry_mask,
-               current_cpu_data.dcache.alias_mask,
-               current_cpu_data.dcache.n_aliases);
+               boot_cpu_data.dcache.entry_mask,
+               boot_cpu_data.dcache.alias_mask,
+               boot_cpu_data.dcache.n_aliases);
 
        if (!__flush_dcache_segment_fn)
                panic("unknown number of cache ways\n");
  */
 void __init p3_cache_init(void)
 {
-       compute_alias(¤t_cpu_data.icache);
-       compute_alias(¤t_cpu_data.dcache);
+       compute_alias(&boot_cpu_data.icache);
+       compute_alias(&boot_cpu_data.dcache);
 
-       switch (current_cpu_data.dcache.ways) {
+       switch (boot_cpu_data.dcache.ways) {
        case 1:
                __flush_dcache_segment_fn = __flush_dcache_segment_1way;
                break;
                     : "m" (__m(v)));
 
        index = CACHE_IC_ADDRESS_ARRAY |
-                       (v & current_cpu_data.icache.entry_mask);
+                       (v & boot_cpu_data.icache.entry_mask);
 
        local_irq_save(flags);
        jump_to_P2();
 
-       for (i = 0; i < current_cpu_data.icache.ways;
-            i++, index += current_cpu_data.icache.way_incr)
+       for (i = 0; i < boot_cpu_data.icache.ways;
+            i++, index += boot_cpu_data.icache.way_incr)
                ctrl_outl(0, index);    /* Clear out Valid-bit */
 
        back_to_P1();
         * All types of SH-4 require PC to be in P2 to operate on the I-cache.
         * Some types of SH-4 require PC to be in P2 to operate on the D-cache.
         */
-       if ((current_cpu_data.flags & CPU_HAS_P2_FLUSH_BUG) ||
+       if ((boot_cpu_data.flags & CPU_HAS_P2_FLUSH_BUG) ||
            (start < CACHE_OC_ADDRESS_ARRAY))
                exec_offset = 0x20000000;
 
                int i, n;
 
                /* Loop all the D-cache */
-               n = current_cpu_data.dcache.n_aliases;
+               n = boot_cpu_data.dcache.n_aliases;
                for (i = 0; i < n; i++, addr += 4096)
                        flush_cache_4096(addr, phys);
        }
 
 void flush_dcache_all(void)
 {
-       (*__flush_dcache_segment_fn)(0UL, current_cpu_data.dcache.way_size);
+       (*__flush_dcache_segment_fn)(0UL, boot_cpu_data.dcache.way_size);
        wmb();
 }
 
                             unsigned long end)
 {
        unsigned long d = 0, p = start & PAGE_MASK;
-       unsigned long alias_mask = current_cpu_data.dcache.alias_mask;
-       unsigned long n_aliases = current_cpu_data.dcache.n_aliases;
+       unsigned long alias_mask = boot_cpu_data.dcache.alias_mask;
+       unsigned long n_aliases = boot_cpu_data.dcache.n_aliases;
        unsigned long select_bit;
        unsigned long all_aliases_mask;
        unsigned long addr_offset;
         * If cache is only 4k-per-way, there are never any 'aliases'.  Since
         * the cache is physically tagged, the data can just be left in there.
         */
-       if (current_cpu_data.dcache.n_aliases == 0)
+       if (boot_cpu_data.dcache.n_aliases == 0)
                return;
 
        /*
        unsigned long phys = pfn << PAGE_SHIFT;
        unsigned int alias_mask;
 
-       alias_mask = current_cpu_data.dcache.alias_mask;
+       alias_mask = boot_cpu_data.dcache.alias_mask;
 
        /* We only need to flush D-cache when we have alias */
        if ((address^phys) & alias_mask) {
                        phys);
        }
 
-       alias_mask = current_cpu_data.icache.alias_mask;
+       alias_mask = boot_cpu_data.icache.alias_mask;
        if (vma->vm_flags & VM_EXEC) {
                /*
                 * Evict entries from the portion of the cache from which code
         * If cache is only 4k-per-way, there are never any 'aliases'.  Since
         * the cache is physically tagged, the data can just be left in there.
         */
-       if (current_cpu_data.dcache.n_aliases == 0)
+       if (boot_cpu_data.dcache.n_aliases == 0)
                return;
 
        /*
        unsigned long a, ea, p;
        unsigned long temp_pc;
 
-       dcache = ¤t_cpu_data.dcache;
+       dcache = &boot_cpu_data.dcache;
        /* Write this way for better assembly. */
        way_count = dcache->ways;
        way_incr = dcache->way_incr;
        base_addr = ((base_addr >> 16) << 16);
        base_addr |= start;
 
-       dcache = ¤t_cpu_data.dcache;
+       dcache = &boot_cpu_data.dcache;
        linesz = dcache->linesz;
        way_incr = dcache->way_incr;
        way_size = dcache->way_size;
        base_addr = ((base_addr >> 16) << 16);
        base_addr |= start;
 
-       dcache = ¤t_cpu_data.dcache;
+       dcache = &boot_cpu_data.dcache;
        linesz = dcache->linesz;
        way_incr = dcache->way_incr;
        way_size = dcache->way_size;
        base_addr = ((base_addr >> 16) << 16);
        base_addr |= start;
 
-       dcache = ¤t_cpu_data.dcache;
+       dcache = &boot_cpu_data.dcache;
        linesz = dcache->linesz;
        way_incr = dcache->way_incr;
        way_size = dcache->way_size;