MIPS: Define & use CP0_EBase bit definitions
Add definitions for the bits & fields in the CP0_EBase register, and use them from a few different places in arch/mips which hardcoded these values. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Jayachandran C <jchandra@broadcom.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/13222/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
dc3ee608d6
commit
37af2f3077
@@ -58,7 +58,7 @@ void nlm_node_init(int node)
|
||||
nodep->coremask = 1; /* node 0, boot cpu */
|
||||
nodep->sysbase = nlm_get_sys_regbase(node);
|
||||
nodep->picbase = nlm_get_pic_regbase(node);
|
||||
nodep->ebase = read_c0_ebase() & (~((1 << 12) - 1));
|
||||
nodep->ebase = read_c0_ebase() & MIPS_EBASE_BASE;
|
||||
if (cpu_is_xlp9xx())
|
||||
nodep->socbus = xlp9xx_get_socbus(node);
|
||||
else
|
||||
|
Reference in New Issue
Block a user