Message ID | 20180228045744.12914-4-takahiro.akashi@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E061D60362 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 28 Feb 2018 05:00:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0DE328BEF for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 28 Feb 2018 05:00:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C54A628BF1; Wed, 28 Feb 2018 05:00:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4D05828BEF for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 28 Feb 2018 05:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RrvG465CWfEd1rvHWx0KHXT45sfs1vDxM7C+SuYNF4w=; b=FnttKmjc58fAvu948C9Jawn8oj jZZJD8/lOr471HjDMiyvh+L45k3RMfe+rD1l04GEeGOQAhpKG4o5IUcMAiGJDHP/h720ttRsnFKiR BnIjQ8R5vtaLWfYxsyDpGUX/vD6lpHR+AJPfRceVkTYfGp1WsEuf0Vm3UEs2cLBO6iduNH0owVQ+9 ++phbCn3l2nmCzJ7KTpWPrSyvF/zqkZ4ZJ81PjidbbdHjxipQJw7uqTpGAGoDSjA3X+B2tR9k0PSU P0TB1LqFNkKPEJVfh1g7Dvfidv+6xbORae2ILBmNOXNNu4gTC+3gKFGVbehoc/e7xu8wmXbw0/n9l IdSQm1bA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqtqx-0000EI-9T; Wed, 28 Feb 2018 05:00:31 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqtoo-0006Nd-SF for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 04:58:45 +0000 Received: by mail-pf0-x243.google.com with SMTP id u5so566426pfh.6 for <linux-arm-kernel@lists.infradead.org>; Tue, 27 Feb 2018 20:58:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TTeOcCcPG5i0tF3tji906oL0gG11jYHwLFt9w6wo+0k=; b=i5J4ZAeOg4FVszIEB45GNovdKnjGzzJge7Ynnci+sgTPAAkGuo8uzk3ZipXdmuUl+4 hhaxhqd7Z3zQ+cpKo5TfPFvwO9w1vryvJZW60smwHOEO+AAFsMbkurb7rTWQiWlI1Fcn S6HNO9PHiqR7b3mdE+TigmR6hdYraZU6PfgfI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TTeOcCcPG5i0tF3tji906oL0gG11jYHwLFt9w6wo+0k=; b=VM5elY7zzYA/MmWh9vPEuSXMbD1A+kA4lZu1C5VS4fPfhxGVuCJ8l8C1PvEpz4Ifog VC+HUXnuctmDflnR314vjRheJRU2894J3AzGreBnySU6bhgKfAZBhVbJhnZRQB51Dso7 xTbaRT5iELfCwRfNIWERBn8UtcdMD+KH/ink8ut+6BP1OUEWv5AAVC7a1nqDPG4Iqupg dHbC/eLz/eg7AwJSqabtvhumFkbeQCRVkWC0R/3B1rMoSsXE5FBTVPV2uK0sNFFDWF3t S4nYznnZZbzYkHvJMBX6ot4YHWdlKSAuK4njpvM6+rb4pkyZs33lhGNj0TPPAGFwEwdX DBnQ== X-Gm-Message-State: APf1xPDky1H32/O3FLNBPreCMwhujTCGcYATTvVugRk9C48tvJo6tW9R jM3vY2KdnKmLaXCx8SdriltZ+w== X-Google-Smtp-Source: AH8x2277BkyMMHUh7BlOJHvVeQLvr0fuTKTLiFIM2iqcipS9CckjFexU64VRsHCTSdN1L4uTth/2lw== X-Received: by 10.98.69.76 with SMTP id s73mr16644292pfa.31.1519793887834; Tue, 27 Feb 2018 20:58:07 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id f13sm863950pgp.59.2018.02.27.20.58.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 20:58:07 -0800 (PST) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org Subject: [PATCH v2 3/3] arm64: irq: add get_handle_irq() Date: Wed, 28 Feb 2018 13:57:44 +0900 Message-Id: <20180228045744.12914-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180228045744.12914-1-takahiro.akashi@linaro.org> References: <20180228045744.12914-1-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180227_205819_334456_45C8ADC4 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, AKASHI Takahiro <takahiro.akashi@linaro.org>, dave.long@linaro.org, masami.hiramatsu@linaro.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c index 60e5fc661f74..ddd0759dc859 100644 --- a/arch/arm64/kernel/irq.c +++ b/arch/arm64/kernel/irq.c @@ -52,6 +52,13 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) handle_arch_irq = handle_irq; } +#ifdef CONFIG_LKDTM +unsigned long get_handle_irq(void) +{ + return (unsigned long)handle_arch_irq; +} +#endif + #ifdef CONFIG_VMAP_STACK static void init_irq_stacks(void) {
This function is needed for utilizing lkdtm to make a probe hook on architecture-specific irq handler entry. In arm64 case, arm64 doesn't have "do_IRQ" function, instead handle_arch_irq, which is initialized by irq chip driver(gic), is called from exception entry code. So just add it. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- arch/arm64/kernel/irq.c | 7 +++++++ 1 file changed, 7 insertions(+)