From patchwork Mon Jan 7 14:52:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154885 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3565595ljp; Mon, 7 Jan 2019 06:53:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/UbJjD5CSB22flTUv48Pet2UYSh4WX2O0w2d+TFxdKvz05Zez/bRb9CxoA44DK/lB3itVgZ X-Received: by 2002:a62:f5da:: with SMTP id b87mr64352725pfm.253.1546872804507; Mon, 07 Jan 2019 06:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546872804; cv=none; d=google.com; s=arc-20160816; b=0nCIMi8oRM78sdQYDKpzvK+ww37RB7PC34T3wJNBmem2AQe9d2wZHArBtTBZvCh5q3 xPgzxIL9sAUmm7uz7WTXrpp6S/XWzra7dmW5wx0AIBtyBo346/qdofbRRFX84OakWQuq c53vqZQhjWALj1WbzpBF9Mg0wj7EqBRVNrj9Gzar55iWBMJ8klAPGEPm3ofksUo6GJUu S9gJB8IRGpa7gHntHHSVdUvgVlVjHbjPOVa5WTKfnapj2TCdbfvN/vbfH9q8vw0spMSi NlXIS+4oXWUYaJMbwYmW2SjjCs6ewYr8/TnjMf3bHGR5mTvUU10kSha9gRuY4M+eLwzf Wvng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=L8dzRK8u+9X5NB1F78wxGzgOGa50Hz3EXcEfF722qFs=; b=SyuzJQ2D7/eR7m+KTyYbOsWGX5Isi00+MVoeO2ZBD0Aoz3KXUgcJsxWURBX8kgBA3k 8ud79f+SgwY0Q3HnXMM/mCiw/2aDsIcxlkV1KILd3VzkT3gfOCOYwK8E1kHOV198fEhg B/MK0O/OmrzxPVaXk2utVqfk+QZyxnQ5pbcMMTJZ5cUXezaBKCywVdsVakIG/7BYSebJ Tg6//zYXJ3jCWC6OYdMG7ZNE+3O4GGvaQUf3F9uBwfZHeNBCpeqJEDfJx33+4CFJZ/kN Ei32aaP3RfSrxIqOdhVgC0urVL2YpRsSnyNpQPbzurI8rFcdGNdXGH50ugk8C/VYWMdk dYUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YYvVVXFJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si58148986pgq.270.2019.01.07.06.53.24; Mon, 07 Jan 2019 06:53:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YYvVVXFJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729301AbfAGOxX (ORCPT + 31 others); Mon, 7 Jan 2019 09:53:23 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33772 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727548AbfAGOxW (ORCPT ); Mon, 7 Jan 2019 09:53:22 -0500 Received: by mail-pg1-f195.google.com with SMTP id z11so255712pgu.0 for ; Mon, 07 Jan 2019 06:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L8dzRK8u+9X5NB1F78wxGzgOGa50Hz3EXcEfF722qFs=; b=YYvVVXFJPr4luDn2L28Jh7AueGzbW9/98BeM/joCJHg+SeC5kq+Usaro50Z0Ietze1 07g6V/oEEV6xJaMm6sg00x0FDB5XZm0SC3xEOAt1AOjkJ/m6d3NG3cgoxmTErXi2C8gQ QunI4SPt+XPtKtYBNzS/NopxpfD+li6p6+PaQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L8dzRK8u+9X5NB1F78wxGzgOGa50Hz3EXcEfF722qFs=; b=AxefYvVEo/vvn+ABsY/dV/XxmBfZrcnEnZSmFPOws4kus270BQdHPQJwjKxlXXyy74 Ok6s2/mzMd9qH1crh7wPMTTmnyl+dYrFlZxQVdrFNkBrAyCu39zu6gGro8ueQruBplmZ 3fGiwZhOtkNbzW1lcZI6piq901cXAQ2T4Oc17KTUQoqsQ6yk33AjwVcOUKiYHMwuTyNf Cl02wdBwNOQWhBF9PxIadoW/uKA5P18V3v6BjyLbYacskYtjHzGTiciK7XD5Y4IPbRxc TO6VZF10zNMRjuq9emo0BK1tsxiVJtvYTlfQO3zA2rmdO2WU0fv062ZblV4wHlWjW7dt EFbQ== X-Gm-Message-State: AJcUukfedTcuefoik9tffC37wVq2d9hraIuIGcArOWEib37ExAXLG5Ue DWj5ERMiJ+gSO7AmBEh5W8U56w== X-Received: by 2002:a62:30c3:: with SMTP id w186mr63582883pfw.39.1546872802313; Mon, 07 Jan 2019 06:53:22 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id o84sm121145584pfi.172.2019.01.07.06.53.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Jan 2019 06:53:21 -0800 (PST) From: Firoz Khan To: Mark Salter , Aurelien Jacquiot , Michal Simek , linux-c6x-dev@linux-c6x.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH 1/3] c6x: add Makefile to invoke syscall table generation script Date: Mon, 7 Jan 2019 20:22:44 +0530 Message-Id: <1546872766-3354-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546872766-3354-1-git-send-email-firoz.khan@linaro.org> References: <1546872766-3354-1-git-send-email-firoz.khan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Makefile to invoke the system call table generation script which is placed in scripts directory as a common location acc- essible for all the architectures. scripts/syscallhdr.sh will generate uapi header and scripts- /syscalltbl.sh will generate kapi header respectively. There is another scripts scripts/syscallnr.sh can generate total number of syscall which doesn't invoke from this Makefile. Signed-off-by: Firoz Khan --- arch/c6x/kernel/syscalls/Makefile | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 arch/c6x/kernel/syscalls/Makefile -- 1.9.1 diff --git a/arch/c6x/kernel/syscalls/Makefile b/arch/c6x/kernel/syscalls/Makefile new file mode 100644 index 0000000..1865a80 --- /dev/null +++ b/arch/c6x/kernel/syscalls/Makefile @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0 +kapi := arch/$(SRCARCH)/include/generated/asm +uapi := arch/$(SRCARCH)/include/generated/uapi/asm + +_dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \ + $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') + +syscall := $(srctree)/scripts/syscalls/syscall.tbl +syshdr := $(srctree)/scripts/syscallhdr.sh +systbl := $(srctree)/scripts/syscalltbl.sh + +quiet_cmd_syshdr = SYSHDR $@ + cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \ + '$(syshdr_abis_$(basetarget))' \ + '$(syshdr_pfx_$(basetarget))' \ + '$(syshdr_offset_$(basetarget))' + +quiet_cmd_systbl = SYSTBL $@ + cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \ + '$(systbl_abis_$(basetarget))' \ + '$(systbl_abi_$(basetarget))' \ + '$(systbl_offset_$(basetarget))' + +syshdr_abis_unistd_32 := common,32,rename,stat64,archs0 +$(uapi)/unistd_32.h: $(syscall) $(syshdr) + $(call if_changed,syshdr) + +systbl_abis_syscall_table := common,32,rename,stat64,archs0 +systbl_abi_syscall_table := 32 +$(kapi)/syscall_table.h: $(syscall) $(systbl) + $(call if_changed,systbl) + +uapisyshdr-y += unistd_32.h +kapisyshdr-y += syscall_table.h + +targets += $(uapisyshdr-y) $(kapisyshdr-y) + +PHONY += all +all: $(addprefix $(uapi)/,$(uapisyshdr-y)) +all: $(addprefix $(kapi)/,$(kapisyshdr-y)) + @: From patchwork Mon Jan 7 14:52:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154886 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3565694ljp; Mon, 7 Jan 2019 06:53:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN7xJwzSUXAnuXRD5XZP+1sciG8tV/hYrw/IKS4AU5ueBdDpZeyWqtusqEI+oydfkHIdiWts X-Received: by 2002:a63:a30a:: with SMTP id s10mr10456975pge.234.1546872811169; Mon, 07 Jan 2019 06:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546872811; cv=none; d=google.com; s=arc-20160816; b=AoGRvpbqJJar93pedy3q3wybv+0x5UUCW4xs1J4vdqBzRAqWo/dyAV9DEsADFCGCrO vXRjff5V1lcGfWwyZluzBtHb9q8uNxEXm6HW7W9pd58phReqIh95/cMTm0ZRyl8xgTjV E0RGLZ81MZ+OZMPTgDEsbkbjAZ3ZS75iMXRQDSYQXUPeeKswkQWA6HZyyAcUgfL0Exta OCPQzb4aFmePALuXFV/wdgCOAHNV7ppdGBrQa5+5+QS7ot18TWPWjfjktT3gQOm25Zl4 7CDsWFV+Tlg7USiwYQMii15zSfLNjNQonU++vGgLHetCUY0PhMGMs0tpHA1ZynEGQI7J UBlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=13qvNhqz5adh8H7HAMhUD3/uHkd4DMTPZ6JpXLBiryc=; b=KqIZBtVtHwRO2I1drofCh7NDhuO9pEVmm6jnfjx5kyznQrX64kDNBnkbiNcvG8b7nk X933Pp4Z2OsVvMZSXZOZgTxjbU+jRv0r86jsENfiSzWb7BGVnGZ54ONCHZ3VDWYHW1dv Wt5Uc56uEIijVan3pmaHNqYDO2FI/MqtVios4BjbWwiB9J8kF+Tl0a0lQdi71RGQmQJx peIS8JOcvVgMZxhWuisQz8+fdb/ld7iREl4oLVdEHSzvekpdySgTgQ4DIgIhnFVKJJj3 /U65aqtRPaeN/3rlha0PRLMA1X0Wm5PtKwWOilNx92UfHTQ8KjWKAjFCd3N9Cp8JxMSf NDAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VkVhLmNL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si901427plz.263.2019.01.07.06.53.30; Mon, 07 Jan 2019 06:53:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VkVhLmNL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729316AbfAGOx2 (ORCPT + 31 others); Mon, 7 Jan 2019 09:53:28 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35340 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbfAGOx1 (ORCPT ); Mon, 7 Jan 2019 09:53:27 -0500 Received: by mail-pl1-f194.google.com with SMTP id p8so269042plo.2 for ; Mon, 07 Jan 2019 06:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=13qvNhqz5adh8H7HAMhUD3/uHkd4DMTPZ6JpXLBiryc=; b=VkVhLmNLZjD0w1SQF5mARUTC4wmcsNYNDjFqrDgEvBl5FQ/51cl/M4BtUosGyIriSo piVnjTjHzaHa2/sACpY2CnxfTSM62u3nSOQSLHIRH8GdAlqPaujqXbmni28JPi1INSdH Dux8zULQ+33ces7BYTEnu4MCL5jqW+C0uqe50= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=13qvNhqz5adh8H7HAMhUD3/uHkd4DMTPZ6JpXLBiryc=; b=c0XM2nKKwgdFQmotfNzZ4wWdQpV6UnoElqvFvh4f55gOENK/XZXD7xb9v39V/biJXT b9OWgU2ZWvB8AYIE5e9rA6Jlg1EH0xOOAyweZWUZwRcdsHxafBorB61si4DTd6sq4RRg z7g3Unhx1fpgCsKWqAnU9ENYK7c0vJ/4cn3AT8K31lFMw/1n8+BKyFgHaKk1XV3aPQgL Aqz8HqkFy/DKSSc1mzrCvBZN7qnvRuFFnxy0tJpEsDeXWxKXCfvSnmB27R96Cq6c2fji RVeXate0Yvze/gL9cJm9Bsh/LzkRCCQb3noTpXJPPLIuivGLqHKGpor0BTByjbpMRa7f Z4yQ== X-Gm-Message-State: AJcUukcNpYW4kZUEZhA7+Z+juHtFJVRGwdjqDiJgbP5IY8vr4UfF6fOo EYZdFnJbRoLqNMDxCNHeNYcZIw== X-Received: by 2002:a17:902:820d:: with SMTP id x13mr63232243pln.229.1546872807090; Mon, 07 Jan 2019 06:53:27 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id o84sm121145584pfi.172.2019.01.07.06.53.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Jan 2019 06:53:26 -0800 (PST) From: Firoz Khan To: Mark Salter , Aurelien Jacquiot , Michal Simek , linux-c6x-dev@linux-c6x.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH 2/3] c6x: add __ARCH_NOMMU as a bugfix Date: Mon, 7 Jan 2019 20:22:45 +0530 Message-Id: <1546872766-3354-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546872766-3354-1-git-send-email-firoz.khan@linaro.org> References: <1546872766-3354-1-git-send-email-firoz.khan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add __ARCH_NOMMU in uapi/asm/unistd.h file as a bugfix. Signed-off-by: Firoz Khan --- arch/c6x/include/uapi/asm/unistd.h | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 6b2fe79..9e9ffe5 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_STAT64 #define __ARCH_WANT_SYS_CLONE +#define __ARCH_NOMMU /* Use the standard ABI for syscalls. */ #include From patchwork Mon Jan 7 14:52:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154887 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3565878ljp; Mon, 7 Jan 2019 06:53:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ELxKYR2E70NxY5KDVjtDEGFiehwgsij0Jwmnmp9X1VKqZ/1okod81bc+4m5Wj6AYEip1w X-Received: by 2002:a17:902:7b91:: with SMTP id w17mr61661709pll.111.1546872822643; Mon, 07 Jan 2019 06:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546872822; cv=none; d=google.com; s=arc-20160816; b=R49kzvD++50VBUTDZMO12Wh4LBEXZIwWJNoooje33pgIHIfsm/7jey/Lj31W0kuJ2i XT1n6i6Wu3DbVW2ptJt6QIdj3bqE73fPkSW1HR+V42aPYK0ciOiaDD5VFq8LzphLiaxS Oc4aXNWFHy7VzVFcTPZAzKFnp1aKwtecH9CWoMANPYiHWXMZ2eHQ3psG8PGD86GrfIiJ pMXfekrmqxAU8h8tdISH3mp3gSWlxiatwGKtyT9WMlDqnvomDd9iY97c6pCM2ETd5mrI WY8ifbrp2dLHNK1by3rMAX2I7cyWDDaU/hNjoYxx/utZvrnQvmE1VZVE5kLKW97UbTQD qncQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Qribx+gqAo/t4LskQU55eR6fPQXJgUz1Qy4Xg5x2OCo=; b=kMiIvllpUm46qYyx88q8NCHJUFJnAc+l9+0fjtxmKNhNdmVHRDKmfaDxNDT3GXPjR1 vxX0PA4ALG6LwXM4VO8v1Rj+mo6qR8ndeC4CVwQYYvrOzXAN5/VZyclpF+4NKLWD3cCl KTqqC91XQxwFbH8VC4W2Haz9Q9gd1myhFjVKUwSdox6rkLA9DuMVV/7NOQ5ktSzovQfJ TP/b2h2DqAK+jzOsJUhNYwiu+7kfGt4ILJHMfCoUjUhy5hR6Cyu5qkI/XVfcYcUuLVpv uIpn1XNS7gCGrFSpS1esmLi2dKXCJMXxFTeh8FmmfqgtHoVjLhiWLPDH96SDppzMlTdU 9c9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gT4vW4tQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d39si21724498pla.278.2019.01.07.06.53.42; Mon, 07 Jan 2019 06:53:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gT4vW4tQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729349AbfAGOxl (ORCPT + 31 others); Mon, 7 Jan 2019 09:53:41 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44467 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728314AbfAGOxk (ORCPT ); Mon, 7 Jan 2019 09:53:40 -0500 Received: by mail-pl1-f193.google.com with SMTP id e11so246020plt.11 for ; Mon, 07 Jan 2019 06:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qribx+gqAo/t4LskQU55eR6fPQXJgUz1Qy4Xg5x2OCo=; b=gT4vW4tQu9TNvj7pFGXrIWNRbZbY6iA7ypL9RYQ0jmwd+T7DP3diVC8S6lC6iIwRmO iDyPgS4X1CA7+vOS6t1GQz+P2zG2glast45xM+0vG3o8Rbx/3OzT0CoePpoNjPDS0oVq Pl2RqgEBCdjNXaRH8J0HMpOJkmYn5qz+HEANQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Qribx+gqAo/t4LskQU55eR6fPQXJgUz1Qy4Xg5x2OCo=; b=DVPmeHKmHKseiHezmIXAwDUavFErDCnPLWecax8wkenoF29BW7YEhJPk/x1sTOZ5Q4 L2iMrGzAjDbfsuqI4kaPguSzo2w3cUosfy7UaWv3rD+N6/7rZKxdKCRB2X5+E35kJ35c XS6GSnaivujg+puYlHExegujNIBLdFF/ANy5lEQhiCTnie9COhRQ+910Y2EzWq2d7DkM jBf5aPL7cpZuI3ZwpSJfKBAOigDjC2+gC3V+fE7TktdeQiMAfX6dMOh1rXuk42XnO9WF X4M+SWvK3MyZ/JaXSrbf7cF4UOUNPL+Jp0Rqam23TdqvtDmWNYJDPMHa+0EwB13mrhGF +wQg== X-Gm-Message-State: AJcUukcRB1Th4hoNbzBPcmgO7Ec9l2D9ZvT9bO7FRXZeYyxV5Reg09YA fpvHCxmxb3XBQ7uIiYbvDW2qUg== X-Received: by 2002:a17:902:9047:: with SMTP id w7mr62018164plz.270.1546872819948; Mon, 07 Jan 2019 06:53:39 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id o84sm121145584pfi.172.2019.01.07.06.53.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Jan 2019 06:53:39 -0800 (PST) From: Firoz Khan To: Mark Salter , Aurelien Jacquiot , Michal Simek , linux-c6x-dev@linux-c6x.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH 3/3] c6x: generate uapi and kapi headers Date: Mon, 7 Jan 2019 20:22:46 +0530 Message-Id: <1546872766-3354-4-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546872766-3354-1-git-send-email-firoz.khan@linaro.org> References: <1546872766-3354-1-git-send-email-firoz.khan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unified system call table generation script need to be invoked to generated the uapi and kapi headers. The Makefile changes present in this patch will invoke the scripts and generate uapi and kapi header files. The generated files - unistd_*.h and syscall_table_*.h files will be included by unistd.h and sys_c6x.c files by replacing asm-generic/unistd.h file. Signed-off-by: Firoz Khan --- arch/c6x/Makefile | 3 +++ arch/c6x/include/asm/Kbuild | 1 + arch/c6x/include/uapi/asm/Kbuild | 1 + arch/c6x/include/uapi/asm/unistd.h | 14 +++++++++----- arch/c6x/kernel/sys_c6x.c | 3 ++- 5 files changed, 16 insertions(+), 6 deletions(-) -- 1.9.1 diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile index b7aa854..acc9c91 100644 --- a/arch/c6x/Makefile +++ b/arch/c6x/Makefile @@ -53,6 +53,9 @@ dtbImage.%: vmlinux archclean: $(Q)$(MAKE) $(clean)=$(boot) +archheaders: + $(Q)$(MAKE) $(build)=arch/c6x/kernel/syscalls all + define archhelp @echo ' vmlinux.bin - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)' @echo ' dtbImage.
- ELF image with $(arch)/boot/dts/
.dts linked in' diff --git a/arch/c6x/include/asm/Kbuild b/arch/c6x/include/asm/Kbuild index 33a2c94..3d551e6 100644 --- a/arch/c6x/include/asm/Kbuild +++ b/arch/c6x/include/asm/Kbuild @@ -1,3 +1,4 @@ +generated-y += syscall_table.h generic-y += atomic.h generic-y += barrier.h generic-y += bugs.h diff --git a/arch/c6x/include/uapi/asm/Kbuild b/arch/c6x/include/uapi/asm/Kbuild index 6c6f630..28823e3 100644 --- a/arch/c6x/include/uapi/asm/Kbuild +++ b/arch/c6x/include/uapi/asm/Kbuild @@ -1,5 +1,6 @@ include include/uapi/asm-generic/Kbuild.asm +generated-y += unistd_32.h generic-y += kvm_para.h generic-y += shmparam.h generic-y += ucontext.h diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 9e9ffe5..4633005 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -20,9 +20,13 @@ #define __ARCH_WANT_SYS_CLONE #define __ARCH_NOMMU -/* Use the standard ABI for syscalls. */ -#include +#include -/* C6X-specific syscalls. */ -#define __NR_cache_sync (__NR_arch_specific_syscall + 0) -__SYSCALL(__NR_cache_sync, sys_cache_sync) +#ifndef __SYSCALL +#define __SYSCALL(x, y) +#endif + +#if __BITS_PER_LONG == 32 +#define __NR_cache_sync __NR_arch_specific_syscall0 +#include +#endif diff --git a/arch/c6x/kernel/sys_c6x.c b/arch/c6x/kernel/sys_c6x.c index a742ae25..3e4b4e4 100644 --- a/arch/c6x/kernel/sys_c6x.c +++ b/arch/c6x/kernel/sys_c6x.c @@ -70,5 +70,6 @@ asmlinkage int sys_cache_sync(unsigned long s, unsigned long e) */ void *sys_call_table[__NR_syscalls] = { [0 ... __NR_syscalls-1] = sys_ni_syscall, -#include +#define sys_arch_specific_syscall0 sys_cache_sync +#include };