Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1895407imm; Thu, 2 Aug 2018 02:55:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpczCG1hot+ze3Yq1ZXpLqImSLXpgHzUfAv/v2Sdtk73g9/AQPjva7rtupmwnBkDThTOHmdh X-Received: by 2002:a63:8749:: with SMTP id i70-v6mr2053106pge.325.1533203744903; Thu, 02 Aug 2018 02:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533203744; cv=none; d=google.com; s=arc-20160816; b=ThcH7I1Uqx1Sv8pt0ze9XvIykV91cEVC/+bexrUb08N62cUEpv0H0hHp0VHueQaa42 H9w0TfP4JXdQKxpG2YTVhl/aarp+QkhxOPqxiOx0Q4V2775Rt7Os5RxeV+uv/XIpqq/s ndc8oif+tGQRjQpiE8+6UmaXYvn8A4zGl5mhEhB4XWPRBZkFh5Ck+2K8DM6EvGSkuddY IXpaHoXFKKhzScEvFTuPhv1Id067A4ATthC80YnLOTpUhdWj328FiVpad95VsWjgvKMp 9iJM952YTIBQkPF6IOJNL13xXmfqJcZTcp/wpQ3q1DeehrXaqpAmbstK6X4SgvlCZ1I5 RJMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=o5QFC//xNCUkSu6QhHRGiRis7QOQNIBWMzhmZANM+34=; b=kM69xPNigwgE7hb8J/jtItwxNnJRWiGgq8Gbi/e8nXWqjx+m3dHLbN0w+R8svqBAk0 rZUPUHPLMMTdVQL8xB08RabxF3HL3X+UFB6VMQefhMhWYhGOiC7XgeubQA3CN1gzgZ19 I6Cj1+lslhXJ5fnkFa+emrhaxBd8wKuJ+fECXQzDmv3sgQJtgiffXVuc8j220ghG4Yb/ k19+4qk/6v0ckeK/jQ/WZ3MZVg1x881wDvc2fdO0l0LCaiOlU+M/XcIQWjK+W/TY4VHC KismMqw4M1WNhWo7gFr8N/8zyNPOohmWzTlMNZWbR1OeEr/9poP9EdjjT2Fe0zKjLQWq y9jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p77-v6si1622106pfj.294.2018.08.02.02.55.28; Thu, 02 Aug 2018 02:55:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730351AbeHBLo4 (ORCPT + 99 others); Thu, 2 Aug 2018 07:44:56 -0400 Received: from verein.lst.de ([213.95.11.211]:38908 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbeHBLo4 (ORCPT ); Thu, 2 Aug 2018 07:44:56 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 8775468D64; Thu, 2 Aug 2018 11:59:11 +0200 (CEST) Date: Thu, 2 Aug 2018 11:59:11 +0200 From: Christoph Hellwig To: Thomas Gleixner Cc: Christoph Hellwig , palmer@sifive.com, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com, anup@brainfault.org, atish.patra@wdc.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, shorne@gmail.com Subject: Re: [PATCH 5/9] RISC-V: implement low-level interrupt handling Message-ID: <20180802095911.GA14841@lst.de> References: <20180726143723.16585-1-hch@lst.de> <20180726143723.16585-6-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 02, 2018 at 11:48:55AM +0200, Thomas Gleixner wrote: > > diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S > > index 9aaf6c986771..fa2c08e3c05e 100644 > > --- a/arch/riscv/kernel/entry.S > > +++ b/arch/riscv/kernel/entry.S > > @@ -168,8 +168,8 @@ ENTRY(handle_exception) > > > > /* Handle interrupts */ > > move a0, sp /* pt_regs */ > > - REG_L a1, handle_arch_irq > > - jr a1 > > + move a1, s4 /* scause */ > > + tail do_IRQ > > What's the reason for doing the whole exception dance in ASM ? I'll let Palmer defend it. But for now I just want minimal changes to actually get a booting system..