Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 4852C1A9217 for ; Wed, 10 Mar 2021 18:29:10 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 53C4484DC9; Wed, 10 Mar 2021 18:29:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 850D184DC6 for ; Wed, 10 Mar 2021 18:29:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id c21V-lTFMgyq for ; Wed, 10 Mar 2021 18:29:08 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 13F5884D61 for ; Wed, 10 Mar 2021 18:29:08 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 053EFFA95; Wed, 10 Mar 2021 18:29:08 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 10 Mar 2021 18:29:07 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys/arch/powerpc/oea To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210310182908.053EFFA95@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: 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.