From: Luke Kenneth Casson Leighton Date: Sat, 9 May 2020 19:42:24 +0000 (+0100) Subject: Re: [libre-riscv-dev] Handling Interrupts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe9a83d83b628141232803df5076e34cc5aa8abd;p=libre-riscv-dev.git Re: [libre-riscv-dev] Handling Interrupts --- diff --git a/37/d2f2c9cdd34dd15f56438a998d33a553db3010 b/37/d2f2c9cdd34dd15f56438a998d33a553db3010 new file mode 100644 index 0000000..cab1c72 --- /dev/null +++ b/37/d2f2c9cdd34dd15f56438a998d33a553db3010 @@ -0,0 +1,124 @@ +Return-path: +Envelope-to: publicinbox@libre-riscv.org +Delivery-date: Sat, 09 May 2020 20:42:59 +0100 +Received: from localhost ([::1] helo=libre-riscv.org) + by libre-soc.org with esmtp (Exim 4.89) + (envelope-from ) + id 1jXVNC-000640-Tj; Sat, 09 May 2020 20:42:58 +0100 +Received: from lkcl.net ([217.147.94.29]) + by libre-soc.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) + (Exim 4.89) (envelope-from ) id 1jXVNB-00063u-7k + for libre-riscv-dev@lists.libre-riscv.org; Sat, 09 May 2020 20:42:57 +0100 +DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lkcl.net; + s=201607131; + h=Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version; + bh=1hfEP7/U+92pD9pqTcwlgiNEJqdP2FkhfNAywH0khKU=; + b=CpvmxEZFpypsJbwbJnSyV9LEJdNPS184kaDP2m1bohbbYdseuTImdjLesxrVIAmloRop9H43AKVD4c09iY7lSQTzMkNHkyTrn2ZZKti9PJYY9MXdYFV1/xzR5x3zKNqHE5oMKTcXt7x3rNrWuSqw30l8iqqR5lvx8ncc9uxGqSY=; +Received: from mail-lj1-f176.google.com ([209.85.208.176]) + by lkcl.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) + (Exim 4.84_2) (envelope-from ) id 1jXVNA-0008Lv-PN + for libre-riscv-dev@lists.libre-riscv.org; Sat, 09 May 2020 19:42:57 +0000 +Received: by mail-lj1-f176.google.com with SMTP id h4so5229339ljg.12 + for ; + Sat, 09 May 2020 12:42:41 -0700 (PDT) +X-Gm-Message-State: AOAM531n43E+3J+YQPsLlBr1aBfMLGGY1A/UWESeyGdr1ZpbsX2LPCmZ + aLD5ukqQlqOH2ECZ45Rjk1eDn/Si0PAGZ0VypHY= +X-Google-Smtp-Source: ABdhPJwhG+/WmP7lrW0f0adt0attUxSY9AWJjjOl4sIIQhnKkkCvdliBfUdksigvscL9gnFFjyMgV2K74g4NX8xZt0Q= +X-Received: by 2002:a2e:9ac4:: with SMTP id p4mr5289655ljj.195.1589053355615; + Sat, 09 May 2020 12:42:35 -0700 (PDT) +MIME-Version: 1.0 +References: +In-Reply-To: +From: Luke Kenneth Casson Leighton +Date: Sat, 9 May 2020 20:42:24 +0100 +X-Gmail-Original-Message-ID: +Message-ID: +To: Libre-RISCV General Development +Subject: Re: [libre-riscv-dev] Handling Interrupts +X-BeenThere: libre-riscv-dev@lists.libre-riscv.org +X-Mailman-Version: 2.1.23 +Precedence: list +List-Id: Libre-RISCV General Development + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +Reply-To: Libre-RISCV General Development + +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: base64 +Errors-To: libre-riscv-dev-bounces@lists.libre-riscv.org +Sender: "libre-riscv-dev" + +T24gU2F0LCBNYXkgOSwgMjAyMCBhdCA2OjI0IFBNIFllaG93c2h1YSA8eWltbWFudWVsM0BnYXRl +Y2guZWR1PiB3cm90ZToKPgo+IE9uZSB0aGluZyBJIGp1c3QgcmVhbGl6ZWQgdGhhdCBJ4oCZdmUg +bmV2ZXIgZG9uZSBpbiBhbnkgb2YgdGhlIFJUTCBDUFVzIEnigJl2ZSB3b3JrZWQgd2l0aCBpcyBl +bmFibGUgaW50ZXJydX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