Module Name: src Committed By: thorpej Date: Wed Mar 10 18:29:07 UTC 2021
Modified Files: src/sys/arch/powerpc/oea: pmap.c Log Message: - In pmap_bootstrap1(), make sure to initialize pmap_kernel()->pm_vsid with the kernel's base VSID. - In va_to_vsid(), always compute the VSID from the base VSID in the pmap and the effective segment ID (ESID), rather than extracting it from the pmap's segment register value for that ESID. Not only does this make the code the same between OEA and OEA64, but is also lets us compute the correct VSID for that pmap/ESID even if the cached SR for that ESID currently contains something else, such as an I/O segment mapping (as might be the case on a 601). With this change, we can temporarily toggle between an I/O segment and and HTAB-mapped segment if needed (e.g. when calling OpenFirmware on a 601-based system). To generate a diff of this commit: cvs rdiff -u -r1.101 -r1.102 src/sys/arch/powerpc/oea/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.