Re: [PATCH] MIPS: kernel: Rename read/write_c0_ecc to read/writec0_errctl

From: Maciej W. Rozycki
Date: Mon Dec 02 2024 - 14:44:38 EST


On Mon, 2 Dec 2024, Thomas Bogendoerfer wrote:

> CP0 register 26 is used as ECC register for legacy cores, but newer
> cores (MIPS32/MIPS64) use it as an ErrCtl register. Since the kernel only
> uses CP0 26 as ErrCtl register rename the access functions to the more
> fitting name.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Maciej W. Rozycki <macro@xxxxxxxxxxx>

Makes sense to me, thanks!

NB there are further subtleties here, e.g. the 20Kc has DErrCtl at select
0 and IErrCtl at select 1.

Maciej