@@ -1705,10 +1705,10 @@ static inline __init void parity_protection_init(void)
1705
1705
l2parity &= l1parity ;
1706
1706
1707
1707
/* Probe L1 ECC support */
1708
- cp0_ectl = read_c0_ecc ();
1709
- write_c0_ecc (cp0_ectl | ERRCTL_PE );
1708
+ cp0_ectl = read_c0_errctl ();
1709
+ write_c0_errctl (cp0_ectl | ERRCTL_PE );
1710
1710
back_to_back_c0_hazard ();
1711
- cp0_ectl = read_c0_ecc ();
1711
+ cp0_ectl = read_c0_errctl ();
1712
1712
1713
1713
/* Probe L2 ECC support */
1714
1714
gcr_ectl = read_gcr_err_control ();
@@ -1727,9 +1727,9 @@ static inline __init void parity_protection_init(void)
1727
1727
cp0_ectl |= ERRCTL_PE ;
1728
1728
else
1729
1729
cp0_ectl &= ~ERRCTL_PE ;
1730
- write_c0_ecc (cp0_ectl );
1730
+ write_c0_errctl (cp0_ectl );
1731
1731
back_to_back_c0_hazard ();
1732
- WARN_ON (!!(read_c0_ecc () & ERRCTL_PE ) != l1parity );
1732
+ WARN_ON (!!(read_c0_errctl () & ERRCTL_PE ) != l1parity );
1733
1733
1734
1734
/* Configure L2 ECC checking */
1735
1735
if (l2parity )
@@ -1761,18 +1761,18 @@ static inline __init void parity_protection_init(void)
1761
1761
unsigned long errctl ;
1762
1762
unsigned int l1parity_present , l2parity_present ;
1763
1763
1764
- errctl = read_c0_ecc ();
1764
+ errctl = read_c0_errctl ();
1765
1765
errctl &= ~(ERRCTL_PE |ERRCTL_L2P );
1766
1766
1767
1767
/* probe L1 parity support */
1768
- write_c0_ecc (errctl | ERRCTL_PE );
1768
+ write_c0_errctl (errctl | ERRCTL_PE );
1769
1769
back_to_back_c0_hazard ();
1770
- l1parity_present = (read_c0_ecc () & ERRCTL_PE );
1770
+ l1parity_present = (read_c0_errctl () & ERRCTL_PE );
1771
1771
1772
1772
/* probe L2 parity support */
1773
- write_c0_ecc (errctl |ERRCTL_L2P );
1773
+ write_c0_errctl (errctl |ERRCTL_L2P );
1774
1774
back_to_back_c0_hazard ();
1775
- l2parity_present = (read_c0_ecc () & ERRCTL_L2P );
1775
+ l2parity_present = (read_c0_errctl () & ERRCTL_L2P );
1776
1776
1777
1777
if (l1parity_present && l2parity_present ) {
1778
1778
if (l1parity )
@@ -1791,9 +1791,9 @@ static inline __init void parity_protection_init(void)
1791
1791
1792
1792
printk (KERN_INFO "Writing ErrCtl register=%08lx\n" , errctl );
1793
1793
1794
- write_c0_ecc (errctl );
1794
+ write_c0_errctl (errctl );
1795
1795
back_to_back_c0_hazard ();
1796
- errctl = read_c0_ecc ();
1796
+ errctl = read_c0_errctl ();
1797
1797
printk (KERN_INFO "Readback ErrCtl register=%08lx\n" , errctl );
1798
1798
1799
1799
if (l1parity_present )
@@ -1812,11 +1812,11 @@ static inline __init void parity_protection_init(void)
1812
1812
case CPU_5KC :
1813
1813
case CPU_5KE :
1814
1814
case CPU_LOONGSON32 :
1815
- write_c0_ecc (0x80000000 );
1815
+ write_c0_errctl (0x80000000 );
1816
1816
back_to_back_c0_hazard ();
1817
1817
/* Set the PE bit (bit 31) in the c0_errctl register. */
1818
1818
printk (KERN_INFO "Cache parity protection %sabled\n" ,
1819
- (read_c0_ecc () & 0x80000000 ) ? "en" : "dis" );
1819
+ (read_c0_errctl () & 0x80000000 ) ? "en" : "dis" );
1820
1820
break ;
1821
1821
case CPU_20KC :
1822
1822
case CPU_25KF :
@@ -1887,8 +1887,8 @@ asmlinkage void do_ftlb(void)
1887
1887
if ((cpu_has_mips_r2_r6 ) &&
1888
1888
(((current_cpu_data .processor_id & 0xff0000 ) == PRID_COMP_MIPS ) ||
1889
1889
((current_cpu_data .processor_id & 0xff0000 ) == PRID_COMP_LOONGSON ))) {
1890
- pr_err ("FTLB error exception, cp0_ecc =0x%08x:\n" ,
1891
- read_c0_ecc ());
1890
+ pr_err ("FTLB error exception, cp0_errctl =0x%08x:\n" ,
1891
+ read_c0_errctl ());
1892
1892
pr_err ("cp0_errorepc == %0*lx\n" , field , read_c0_errorepc ());
1893
1893
reg_val = read_c0_cacheerr ();
1894
1894
pr_err ("c0_cacheerr == %08x\n" , reg_val );
0 commit comments