From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16485 invoked from network); 3 Sep 2020 11:25:06 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 3 Sep 2020 11:25:06 -0000 Received: (qmail 18420 invoked by uid 550); 3 Sep 2020 11:24:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 18089 invoked from network); 3 Sep 2020 11:24:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=RTBdYtFid+dX1 Ifj6menwy9UdmE2u/QjFJh5jfQSNlU=; b=orYx65yHGJiDKlyDPJRoxlvy0ooVv BgsIky+jtKW03nTMtJu6fpBpI7EFEAlfeAAQUp6LnGQA3qqfsdFRjADpmUeXg+QM U2WIgZeYfDB41m3w5As1Vh8iQW1jnzRxXOE5h7D6fcFfILUgMuvVUT0vbzpoEqB7 7qs6GQRZk6GfmZi7M7Yb99BV/aqnmH/RE6hP+/wuVUshIetW7M90NSJaLmGm73yR BqM40qnbgP7dOaXX6pUHrnUpvdjhRuFvPf+yVqvFdssmwaUbbKtPl8LG8ESwr7ed uujfEmfvQLwKmLvwfyaq51h9YLVxo17FKeFZCzZaewV7Ze7UHe41JGSxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=RTBdYtFid+dX1Ifj6menwy9UdmE2u/QjFJh5jfQSNlU=; b=jhd6qaCq EBETLwG6rHJZ9ljIQnpzny+v8+TVPOF6xySn4lbBN6d2wM5QSHyTH0S9E8WNwbYR Xx74Yh23JpxOQ/DOn94MBKnQUSZ0MqNQlOir8Qk71l38Tq37tglhYqpQz6DufmwV vw3/zDdNRvXOaVlPMJwBXQg4xkwtzjRDM92S1kKiEX9h7S4fGce66YwuI5Lk5baw wBq6CDajWQ5f/+/IhPppE4uUfHSc9EGFtOawnBUxgsXBL3WbfS8eKqOfBui17ebx Zl+1mCABcIJNvXF8itLOGywBn7TicxtyHNyaxznf8cMBmuerpaCPiqIi5UOLulaK mCSG2lL0YBpHOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudeguddggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepufhtvghfrghnucfqkdftvggrrhcuoehsohhrvggrrhesfhgr shhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeegueehieeifeehleevgfdvfe fgtefhhedtieduhfegiefhtdfghfdtteeijeelveenucfkphepvddtledriedrudehgedr feegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsh horhgvrghrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: From: Stefan O'Rear To: musl@lists.openwall.com Cc: Stefan O'Rear Date: Thu, 3 Sep 2020 07:23:03 -0400 Message-Id: <20200903112309.102601-9-sorear@fastmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200903112309.102601-1-sorear@fastmail.com> References: <20200903112309.102601-1-sorear@fastmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH 08/14] riscv: Fall back to syscall __riscv_flush_icache Matches glibc behavior and fixes a case where we could fall off the function without returning a value. --- src/linux/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/linux/cache.c b/src/linux/cache.c index 0eb051c2..9cacac2b 100644 --- a/src/linux/cache.c +++ b/src/linux/cache.c @@ -45,6 +45,7 @@ int __riscv_flush_icache(void *start, void *end, unsigned long int flags) if (!r) return r; if (r != -ENOSYS) return __syscall_ret(r); } + return syscall(SYS_riscv_flush_icache, start, end, flags); } weak_alias(__riscv_flush_icache, riscv_flush_icache); #endif -- 2.25.4