From nobody Wed Feb 21 11:27:49 2024 X-Original-To: dev-commits-src-all@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 4TfvCB1ZJNz5C1Wc; Wed, 21 Feb 2024 11:27:50 +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 4TfvCB13Szz4MdF; Wed, 21 Feb 2024 11:27:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708514870; 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=wATlgJ2I9v856BhHiLzlXsVSu6es/pPUpDCLZ9KS8Os=; b=wOn0tsvjYBaM+hg/XsUAYpd/GwZV9sjY3EJtLKWJXSWQeXgTlJJQkFwIXltsE2rn4BH4Ot XMNZDDdgdKmdd5OxN/MeizKO+vnfXkpgXW+zuF+KZBHFku1HELCD9Qtqn2ALQ83Cd7C5g8 KSOl0EmI67wzgbO7rtjo/lYCvlUGJSzPBTAvojA/dALCM/fm7O+wsDfmHJwBN62M5Kt5eQ tEWuGk8dhTPPnMpOghIJOs1MkrxWh2ahAdaeBqUs6d/drJMLxGzJtnxAHLMcsO2bemxFPf bG0PXCus/dx+Z3daVDJdGJelZFRdrxBJFnEH9eZsayIqwHROHbt5hqQFT9d1Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708514870; 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=wATlgJ2I9v856BhHiLzlXsVSu6es/pPUpDCLZ9KS8Os=; b=nflLe7+nChNsx5jiyE0Tf7IOwBwSsI6yL6iNKZ0FyNwjgs0XfELFz5brOfX1oVPIIUs0sn /lFrJJ+3ukEg1onj+Im17/V7hCu2K52cm0Sq/d70YS81UJQ7Q8H3eqj4HMDZhbfyeGcmMC Cim66LQyCjgIC4utflcaqyltodje9wahAoCDz898UuDoQ1R8CqymCGRmFrMSDPA1kL78g6 LxStsb2XsgGXPAoMLrvcFmYcksoGKKrlWOKE63o6H+1GfSGBpCH1UMbDZkhKLvYW+fTWRd YApwx77Qov4G3qhvTLhfogdzzXxl3DBfnMcihHEzpRSfZ6mnO9fJFG+CC07rVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708514870; a=rsa-sha256; cv=none; b=ndZ5Xq7XYy1rGQxfgYh5U9VVGgsOlZMYVXYbnn7a6j3M9GAHAx9mYN/SfK4yseaYxho73E v6U+dcgDA5IMhigLBBkKfYqdw40fU0T0uzDbu4KEfchD4+Dn1Anu1ewapY/wfK7oHEH6tu Cd48nRzszJGUuy9PHHRtrk5pMw0oZJSjAElOwwq2HlBfubidWnynJPjnxRqDsV4owGUCsQ OQhC7JFVFFwD8M06/jvXRPt7MFHdGCkUCJgeICRTvlnAk0sRLAN6Bh02ulzdEnnFPKwVDn LLsL/ILT9jzcj/pMri+F5BJqiYMGhfGWAhAUNmsAwWJptqvhI3xXfpJKaLkR0g== 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 4TfvCB00twz11RD; Wed, 21 Feb 2024 11:27:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41LBRnlt013269; Wed, 21 Feb 2024 11:27:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LBRnM2013266; Wed, 21 Feb 2024 11:27:49 GMT (envelope-from git) Date: Wed, 21 Feb 2024 11:27:49 GMT Message-Id: <202402211127.41LBRnM2013266@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: 5e7941b6c979 - main - arm64: Add CurrentEL register definitions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 5e7941b6c979a55dc67baf316db6932c09b14022 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=5e7941b6c979a55dc67baf316db6932c09b14022 commit 5e7941b6c979a55dc67baf316db6932c09b14022 Author: Andrew Turner AuthorDate: 2024-02-19 14:57:34 +0000 Commit: Andrew Turner CommitDate: 2024-02-21 11:00:19 +0000 arm64: Add CurrentEL register definitions Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43971 --- sys/arm64/include/armreg.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h index c43ec1f5b97c..0ff42de90f46 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -190,6 +190,14 @@ #define CTR_ILINE_VAL(reg) ((reg) & CTR_ILINE_MASK) #define CTR_ILINE_SIZE(reg) (4 << (CTR_ILINE_VAL(reg) >> CTR_ILINE_SHIFT)) +/* CurrentEL - Current Exception Level */ +#define CURRENTEL_EL_SHIFT 2 +#define CURRENTEL_EL_MASK (0x3 << CURRENTEL_EL_SHIFT) +#define CURRENTEL_EL_EL0 (0x0 << CURRENTEL_EL_SHIFT) +#define CURRENTEL_EL_EL1 (0x1 << CURRENTEL_EL_SHIFT) +#define CURRENTEL_EL_EL2 (0x2 << CURRENTEL_EL_SHIFT) +#define CURRENTEL_EL_EL3 (0x3 << CURRENTEL_EL_SHIFT) + /* DAIFSet/DAIFClear */ #define DAIF_D (1 << 3) #define DAIF_A (1 << 2)