From bc45c1317ddc3b4f02aa094f51c5dd347088ecb4 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Fri, 24 Jul 2020 08:25:47 +1000 Subject: [PATCH] Re: [libre-riscv-dev] system call (sc) LEV "reserved field" --- d6/875ce689cf5c041ffa3638f0db046718425d4d | 165 ++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 d6/875ce689cf5c041ffa3638f0db046718425d4d diff --git a/d6/875ce689cf5c041ffa3638f0db046718425d4d b/d6/875ce689cf5c041ffa3638f0db046718425d4d new file mode 100644 index 0000000..18cf56b --- /dev/null +++ b/d6/875ce689cf5c041ffa3638f0db046718425d4d @@ -0,0 +1,165 @@ +Return-path: +Envelope-to: publicinbox@libre-riscv.org +Delivery-date: Tue, 28 Jul 2020 21:23:53 +0100 +Received: from localhost ([::1] helo=libre-riscv.org) + by libre-soc.org with esmtp (Exim 4.92) + (envelope-from ) + id 1k0Vzz-0001Eo-KK; Tue, 28 Jul 2020 21:14:55 +0100 +Received: from kernel.crashing.org ([76.164.61.194]) + by libre-soc.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) + (Exim 4.92) (envelope-from ) + id 1jyjf3-00038w-By + for libre-riscv-dev@lists.libre-riscv.org; Thu, 23 Jul 2020 23:25:57 +0100 +Received: from localhost (gate.crashing.org [63.228.1.57]) + (authenticated bits=0) + by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 06NMPm3T005839 + (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); + Thu, 23 Jul 2020 17:25:52 -0500 +Message-ID: +From: Benjamin Herrenschmidt +To: Luke Kenneth Casson Leighton +Date: Fri, 24 Jul 2020 08:25:47 +1000 +In-Reply-To: +References: + <20200722224713.GA213782@thinks.paulus.ozlabs.org> + + + +X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 +Mime-Version: 1.0 +X-Mailman-Approved-At: Tue, 28 Jul 2020 21:14:53 +0100 +Subject: Re: [libre-riscv-dev] system call (sc) LEV "reserved field" +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 + +Cc: "openpower-hdl-cores@mailinglist.openpowerfoundation.org" + , + 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" + +T24gVGh1LCAyMDIwLTA3LTIzIGF0IDA1OjE2ICswMTAwLCBMdWtlIEtlbm5ldGggQ2Fzc29uIExl +aWdodG9uIHdyb3RlOgo+IAo+IHdoYXQgaSBoYXZlIG9ic2VydmVkIChhZ2FpbiB0aGlzIGlzIGZy +b20gUklTQ1YpLCBmb3IgaW5zdHJ1Y3Rpb25zCj4gdGhhdCBjYW4gYmUgInNhZmVseSBpZ25vcmVk +IiBhcmUgb2YgYSAiaGludCIgdHlwZS4KClNlZSB3aGF0IFBhdWwgc2FpZC4uLiB0aGUgaWRlYSBp +cyB0aGF0IGFueSBjaGFuZ2UgdG8gYW4gZXhpc3RpbmcKaW5zdHJ1Y3Rpb24gdGhhdCBtYWtlcyB1 +c2Ugb2YgZm9ybWVybHkgcmVzZXJ2ZWQgYml0cyBuZWVkcyB0byBiZSBkb25lCmluIHN1Y2ggYSB3 +YXkgdGhhdCB0aGUgaWdub3JpbmcgdGhlIGJpdHMgaXMgYSBjb3JyZWN0IGltcGxlbWVudGF0aW9u +LgoKSW4gcHJhY3RpY2UgdGhhdCBvZnRlbiBtZWFucyB0aGUgbmV3IGJpdHMgYXJlIGluZGVlZCBo +aW50cywgYnV0IG5vdAphbHdheXMsIHNlZSBQYXVsIGV4YW1wbGUgYWJvdXQgbWZvY3JmLgoKPiB0 +aGUgUklTQ1YgRmVuY2UgaW5zdHJ1Y3Rpb25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