From nobody Mon Jan 31 11:32:50 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5FE7D1982B92; Mon, 31 Jan 2022 11:32:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JnQsZ6yfsz3LgJ; Mon, 31 Jan 2022 11:32:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643628771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XOcwHfEa4q/Wjn3BW9zYsdeHyNuttyhNUVGATz+TLuM=; b=pZxOoPbn2dHCHjDk6eFn6RAdRgxSC1tx5I8vi5sp7fbnwUtR85niXrQ70ZA9oNaiEZggKs liSpccP2nrxQxpK2So5tZ49B6JhknRWqDzZefM8yGEsNgKsBtZsUID2cw5Hk6RLDcL+Yzi UjhYtGMD7L239Lmi2atCIu3cv6aODlzefmJSskTGVPlS+AhrE6aNGJOSangBtYQ+Hs55pu o/LvXO0GBpNjC2e1PYZMiVMigXutNZCMApAu3riudlfccu38zkRPiH/w0WcW5vgVKBNX7H CbJWA4XjZzcXnFlIHfBeKkst4d8iT4MirCe855jGlt/i1Gc3NPCH4S7XAlmukQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5F0381BA18; Mon, 31 Jan 2022 11:32:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20VBWof7015103; Mon, 31 Jan 2022 11:32:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20VBWoRQ015102; Mon, 31 Jan 2022 11:32:50 GMT (envelope-from git) Date: Mon, 31 Jan 2022 11:32:50 GMT Message-Id: <202201311132.20VBWoRQ015102@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 264659e43385 - stable/13 - Add the arm64 TTBR fields to armreg.h List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 264659e43385379407b5bef36a2a6ff60cfe01bc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643628771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XOcwHfEa4q/Wjn3BW9zYsdeHyNuttyhNUVGATz+TLuM=; b=dOnjwjLB2sH7D+fiE6YlK3MLsEkGdfjWT6nvhmhcQYOJs87W/CTyuVBDXlX/ccguAdvL5I oAmfT6fx4bODu1IYxJOqnAj0KRH1d8eaJlDIWv8dY9F9OsfAdH1980nKj/hsjpJetzWbXJ SEhCfrn7s/kHuEvA532LIkdAPwCDqaAvag1ds84TCHrlk9tfkdhK4qkzRDvNyGhgCW/Vru hbQj0ZKXdyajUlACqz/lh67JRCCy0rHz1sckZ4CKVOoiSR3H17wRsCbJjY60RsPKDjrwKQ L67njBnGlhsfBbGlK0w3GWBDRizrOez5WkJd72TfiBP5A3nBfx3cEhljZkcDsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643628771; a=rsa-sha256; cv=none; b=TYC5yyoloD31H4t6FxmbCGyjjZzH5rsjniX3a80zRFqJWHv9yZsl7GZbRJUlqCS+9ecQPC +HRB7eW1dUhED46Av+p8Y5QtgtALxxfLrjJlpDYk5pz7s3k8fThBOIYYVNAv19D+lQdZOJ W4OXKGtjbo15lYYuYBNEMOBClCbjf+BmFrV7EOKo1lZ+jnGq7TJCsILnhV6ekpCbPc2pTq xYF5xbFFEafxfWuuCuwrW71xm5qb61NBHGp2TLUAj9CqteGgmqJaycYO+JO4UGZJB+eTD9 RQHgyh8vU2/DuAUbgIIOqh5TAIDpprsltOf+fMOI2Qcm5qj/nGel/nZRc6swIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=264659e43385379407b5bef36a2a6ff60cfe01bc commit 264659e43385379407b5bef36a2a6ff60cfe01bc Author: Andrew Turner AuthorDate: 2022-01-05 13:06:47 +0000 Commit: Andrew Turner CommitDate: 2022-01-31 10:05:47 +0000 Add the arm64 TTBR fields to armreg.h Sponsored by: The FreeBSD Foundation (cherry picked from commit 0accd726747522b1754803ca73a3631ee150e9ee) --- sys/arm64/include/armreg.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h index 0057a353de66..ba36183b25d3 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -1185,6 +1185,13 @@ #define TCR_SMP_ATTRS 0 #endif +/* TTBR0_EL1 & TTBR1_EL1 - Translation Table Base Register 0 & 1 */ +#define TTBR_ASID_SHIFT 48 +#define TTBR_ASID_MASK (0xfffful << TTBR_ASID_SHIFT) +#define TTBR_BADDR 0x0000fffffffffffeul +#define TTBR_CnP_SHIFT 0 +#define TTBR_CnP (1ul << TTBR_CnP_SHIFT) + /* Saved Program Status Register */ #define DBG_SPSR_SS (0x1 << 21)