From patchwork Sun Nov 5 10:00:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 834314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yVB8c39bPz9t34 for ; Sun, 5 Nov 2017 21:03:10 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 9DF291024C; Sun, 5 Nov 2017 11:00:57 +0100 (CET) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: by helium.openadk.org (Postfix, from userid 1000) id BF62310557; Sun, 5 Nov 2017 11:00:55 +0100 (CET) Date: Sun, 5 Nov 2017 11:00:55 +0100 From: Waldemar Brodkorb To: Alexey Brodkin Message-ID: <20171105100054.GU1829@waldemar-brodkorb.de> MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 3.16.0-4-amd64 x86_64 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Cupertino Miranda , Vineet Gupta , devel@uclibc-ng.org Subject: [uclibc-ng-devel] arc patch from glibc repo X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" Hi Alexey, the attached patch fixes at least 3 test suite errors for me. tst-cancel20/21/4. Tested with latest 2017.09 ARC binutils/gcc. Okay to apply? best regards Waldemar From 761b5a4fd0aa8327738223b00c72ff53e7ab171f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 5 Nov 2017 10:50:31 +0100 Subject: [PATCH] arc: fix some thread cancelation problems Following a recent ARC glibc commit db1d4d56c71181703917e8c22516ada9fbff5879 Signed-off-by: Waldemar Brodkorb --- libc/sysdeps/linux/arc/bits/syscalls.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libc/sysdeps/linux/arc/bits/syscalls.h b/libc/sysdeps/linux/arc/bits/syscalls.h index 248ef7844..ab69cf6b3 100644 --- a/libc/sysdeps/linux/arc/bits/syscalls.h +++ b/libc/sysdeps/linux/arc/bits/syscalls.h @@ -45,14 +45,12 @@ extern int __syscall_error (int); #define ERRNO_ERRANDS(_sys_result) \ __asm__ volatile ( \ - "st.a blink, [sp, -4] \n\t" \ CALL_ERRNO_SETTER \ - "ld.ab blink, [sp, 4] \n\t" \ :"+r" (_sys_result) \ : \ :"r1","r2","r3","r4","r5","r6", \ - "r7","r8","r9","r10","r11","r12" \ - ); + "r7","r8","r9","r10","r11","r12", \ + "blink"); #endif /* IS_IN_rtld */ -- 2.11.0