From nobody Wed Jan 5 15:10:54 2022 X-Original-To: dev-commits-src-main@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 3CEC21925326; Wed, 5 Jan 2022 15:10:55 +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 4JTXxB6GYbz4XXL; Wed, 5 Jan 2022 15:10:54 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 B7C266962; Wed, 5 Jan 2022 15:10:54 +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 205FAsbp019157; Wed, 5 Jan 2022 15:10:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 205FAscJ019156; Wed, 5 Jan 2022 15:10:54 GMT (envelope-from git) Date: Wed, 5 Jan 2022 15:10:54 GMT Message-Id: <202201051510.205FAscJ019156@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 0accd7267475 - main - Add the arm64 TTBR fields to armreg.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 0accd726747522b1754803ca73a3631ee150e9ee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641395454; 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=+wZcsW+K/DjZJ4Q1YDUFSJc7mm8Uzt5XOGvctUZu8rI=; b=nwvVd54Up6+GK+JtyqqcBbPo9FN58bOcEaiedFT1E7FBzswPQFeUjVK1njLxXXm3xyqLd9 +oKcguvG5n1CNGXymN0QnAGMolayMk4nVTo18KrhR/A9PICHRXyRMbOECkM2SuRsbOkPac 7cErpyzAvbj2+SB56LrcUg4L4MldkOE+QxbGWcMKfOqx51rGXX5emP5ESNsb6ngzEaww9V fUHdg3uVAdZMUZhTCP8OIoPdwHW7gG8/EF0P4WWi+4fH7kGWIJsjjG69uQ6VQsTO3Vcrt/ jmil9Fi5aPioudQSKhBf4lHEDOmKIvXek3Jn0bfL77eaZdCCMvR7niBML5NELg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641395454; a=rsa-sha256; cv=none; b=S4E2TwJxMsHnQxNydBsu+OXTCURIrxV3EguS0Ebh4p7Plr/UhpEvZtfGFqjEzc7eK51C/7 EJvsa7LTACKMJLbFx2UpErX2diKbbHsYxqF8Oo/TDoIz+gmffx2vSzTdkHB1eLtywONxc8 tSh+N6KcSIvxy5ok6w2jXJrWFgbe903/tghQFNIWlGiqRc9oQe/DOefIl7boANP1d2F6kL Td4fSFtgKlSYdGDOiMpYzjCiu0PPX2FCpExnIBc8QT4+Z1E36iUt5JzCkaJAnBI9eE/2+b AD1SMcBUHPdZZzsdBuPDDN+5qzJpGnejGuFuW++k865YZwzZIiWXtsUEz4EvJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=0accd726747522b1754803ca73a3631ee150e9ee commit 0accd726747522b1754803ca73a3631ee150e9ee Author: Andrew Turner AuthorDate: 2022-01-05 13:06:47 +0000 Commit: Andrew Turner CommitDate: 2022-01-05 14:56:25 +0000 Add the arm64 TTBR fields to armreg.h Sponsored by: The FreeBSD Foundation --- 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 bcbe9d13863d..19be64316fbc 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -1187,6 +1187,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)