Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3155004ybt; Mon, 22 Jun 2020 16:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrRMplXlGevq/ZQ6SlJ0septEGJq1y0kniRbjA400sntDhutv3jxxdRw+0Aez5Op1hHCGu X-Received: by 2002:a17:906:76c4:: with SMTP id q4mr18875633ejn.371.1592869756926; Mon, 22 Jun 2020 16:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592869756; cv=none; d=google.com; s=arc-20160816; b=NIIPShH9dIM9UfdMevfXXLWalBU5n7DE9jzix2tu1EFS7QMBAtrreBIV7n0HkXCTSU DbzxN4H4P7g9Ry2HiS9E7px1NOnCLuJiDRR1EC/sC5yYunXQ/EHNVoCdN01Pv711m+JS rfn3zt59kRoj4oi5/t+XyKMnsLvb1fMwF3XpJxfExSTDIEO9gxU0VWthYHjqQ211udy4 mw7TPLTmn39ElQC0l4r3VFS029s9u85s6W0HfoxWXc6l+M0WZWdnfJx+muRlv8r3vghg A3kMGeB7YYkjMxz01O7LmJO0aA7UX13Qlb19iBx2ry7CtimZO/pvwU8Csl1w8pZBDZPD KDBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=O75DbHMCCGYVkxHkgX8zoqKyJ2OWIisMzI/Q9D8iTw0=; b=IhctIhb2bQwzrS2demNert9wK7hSoX1qa+B/Y3J6KofUVIjncVfTSA/GpbVsrs5NuG A/WZ1QxhC+C12dIGESQHZVLfAMfSzIXiBxKIaTWwfKCn6t6FKlLY+9uRY5ZDO0l0HeP0 xCatRyX9vRzdukZ7UQY05npYmjfBXcfsHOVLDFlysbPuKVO47EwT3KeVzGqkX2AvXsb8 ipKlf+6Ni3PeV+W6buLw1uVEOBjczNEcWZ3VrfNxQokuGeFHBvlcIXpYYOB2C6iVMyQj fP7j3eIQ19mn3Dgcg4n//BAOtTft2/K4HJSdcYGeWY7fPHkJ8JszglPAEnzJJqFayl5m ckvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si11119251edv.356.2020.06.22.16.48.54; Mon, 22 Jun 2020 16:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731334AbgFVXq0 (ORCPT + 99 others); Mon, 22 Jun 2020 19:46:26 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:54792 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731093AbgFVXqM (ORCPT ); Mon, 22 Jun 2020 19:46:12 -0400 Received: from ip5f5af08c.dynamic.kabel-deutschland.de ([95.90.240.140] helo=wittgenstein.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jnW8f-0005DO-25; Mon, 22 Jun 2020 23:46:09 +0000 From: Christian Brauner To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Christian Brauner , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org Subject: [PATCH 10/17] c6x: switch to copy_thread_tls() Date: Tue, 23 Jun 2020 01:43:19 +0200 Message-Id: <20200622234326.906346-11-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200622234326.906346-1-christian.brauner@ubuntu.com> References: <20200622234326.906346-1-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the copy_thread_tls() calling convention which passes tls through a register. This is required so we can remove the copy_thread{_tls}() split and remove the HAVE_COPY_THREAD_TLS macro. CC: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org Signed-off-by: Christian Brauner --- arch/c6x/Kconfig | 1 + arch/c6x/kernel/process.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/c6x/Kconfig b/arch/c6x/Kconfig index 6444ebfd06a6..9cde76a5928e 100644 --- a/arch/c6x/Kconfig +++ b/arch/c6x/Kconfig @@ -22,6 +22,7 @@ config C6X select GENERIC_CLOCKEVENTS select MODULES_USE_ELF_RELA select MMU_GATHER_NO_RANGE if MMU + select HAVE_COPY_THREAD_TLS config MMU def_bool n diff --git a/arch/c6x/kernel/process.c b/arch/c6x/kernel/process.c index cb9c8b63cddd..afa3ea9a93aa 100644 --- a/arch/c6x/kernel/process.c +++ b/arch/c6x/kernel/process.c @@ -104,9 +104,9 @@ void start_thread(struct pt_regs *regs, unsigned int pc, unsigned long usp) /* * Copy a new thread context in its stack. */ -int copy_thread(unsigned long clone_flags, unsigned long usp, - unsigned long ustk_size, - struct task_struct *p) +int copy_thread_tls(unsigned long clone_flags, unsigned long usp, + unsigned long ustk_size, struct task_struct *p, + unsigned long tls) { struct pt_regs *childregs; -- 2.27.0