Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1686865imm; Wed, 16 May 2018 01:20:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZroNdzacujyaJ22HDHWhmM3keKZtil4z71rjKLj+IB27zG2Dvs/QuZVVHwtUZnjix5tddZI X-Received: by 2002:a17:902:8bc5:: with SMTP id r5-v6mr5130279plo.182.1526458830317; Wed, 16 May 2018 01:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526458830; cv=none; d=google.com; s=arc-20160816; b=ZEqRmC1GhZFAPwBrDxy04pr95SbVBNtdyEqwO3UmC9LaviCZ17Tjylkp6ONk557akT 0Zr09oIM0Ssj+fZ9uh3cikduIoydVm97fY/B1nNEgOrP6/tgkZrbWpTJFU/qOEZvdTM8 gFuQ0rn+ZBQEDSonGTwSVQmQrkV9G1yOKSTo8pp9JPQ9iOGB67zjJJutKQTXxA7C/mo4 5z/T+rH/MymoNWGXlZnB6Oi2FZ4DoWxEP3BWdRPE4hZYGxttxlenal0IRg5wqQ8tPsMq uYKOBpgKbpaIF5QUF3qSi+rug3reBn5DU3mbeWuhmScE6Vg4oDfVaqp/XejG30m6fAc1 H4uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=7wAhJRdIPYWsI4Wr2XdpCuM66sjAA32TnHJV1FBpSTQ=; b=lh0BFZ3uYMZX+1tNlUcSqCzGIU1OQ5dbP8mSSbbc7EpuQLgte/dc+CBdwMeqzDGgwu N91TmDxvj0UoovHjACNI2UhSuPvhOF+d8QdJ1zQ803Vscv9LZk9jHy+aK7WKTrLCIqGC ykhSS58ivxLhjFKJH1mcq4KRrTrNM2sge6VCxrkf/wE3uWHIKion3N1K1paLz6+iNln0 tokiRju/jBzmWQHgz2wZGi8WRFm5WslwwNGaMtcz1YharvZdZTeMiIU1M/gijbwUobJm ABA1q4LqrEpiTup3+3p59kPSszDd83ViRoArKb3Rlxk57fCeAsjLSRvCqfPDGX4gh0p3 OfeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=ck+cnqmX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61-v6si2028792plc.500.2018.05.16.01.20.15; Wed, 16 May 2018 01:20:30 -0700 (PDT) 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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=ck+cnqmX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbeEPITg (ORCPT + 99 others); Wed, 16 May 2018 04:19:36 -0400 Received: from mail-sn1nam02on0087.outbound.protection.outlook.com ([104.47.36.87]:31968 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752524AbeEPIT1 (ORCPT ); Wed, 16 May 2018 04:19:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7wAhJRdIPYWsI4Wr2XdpCuM66sjAA32TnHJV1FBpSTQ=; b=ck+cnqmXbZ9o0c7NGfAho1cF7HJoEYElOcJ/tLuwP5WY2RQj4YgoU4f/UNbTq815dRD2GuExgTWPcetRDLeWP+BcymxvMdxtEEHqgGFGaBmrgJE57rxJyyVq1sL8CLJAIyrBZht8ZYhf2RmVa8i9HcOKlTdAdREPdphoXSNDuHM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (176.59.36.13) by BYAPR07MB4373.namprd07.prod.outlook.com (2603:10b6:a02:c0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Wed, 16 May 2018 08:19:23 +0000 From: Yury Norov To: Catalin Marinas , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Cc: Yury Norov , Adam Borowski , Alexander Graf , Alexey Klimov , Andreas Schwab , Andrew Pinski , Bamvor Zhangjian , Chris Metcalf , Christoph Muellner , Dave Martin , "David S . Miller" , Florian Weimer , Geert Uytterhoeven , Heiko Carstens , James Hogan , James Morse , Joseph Myers , Lin Yongting , Manuel Montezelo , Mark Brown , Martin Schwidefsky , Maxim Kuvyrkov , Nathan_Lynch , Philipp Tomsich , Prasun Kapoor , Ramana Radhakrishnan , Steve Ellcey , Szabolcs Nagy Subject: [PATCH v9 00/24] ILP32 for ARM64 Date: Wed, 16 May 2018 11:18:45 +0300 Message-Id: <20180516081910.10067-1-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [176.59.36.13] X-ClientProxiedBy: VI1PR04CA0090.eurprd04.prod.outlook.com (2603:10a6:803:64::25) To BYAPR07MB4373.namprd07.prod.outlook.com (2603:10b6:a02:c0::16) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BYAPR07MB4373; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4373;3:wMvzK6s99PeICUXwSOKv8o6hUw5yHvdoD+l+HaYKCQXrhdqUyGIyT7npui8Ib9SIysxrFxxCQK5u5kLT9r2/3m+M1z7bk8eIXmRGv04xswktAOyFDqHh+OL7G8s8L87vFbJjBP0dXbRe/ovvv5uSHYLVcU/IlRFEo1In+grBPGsUoaNB/uUmeguvptrN47vUFgJFaBlOEWiPphey7JLunIb+Cyv9aUXMqfPUBzKpbp5cY/Ph5ucNcszI2S2Ws2oH;25:+vL7sTp3LAuAsNPOZ6MFEQmVpQIHCiucoMzu1Y0Dsw1TWwhTWu3jVe3hh3acoTC7M8VPF0MUvFIN1y5GLTJwMrxHhyH64/uGjJsIpowve2GF80XNOpiK/CManciRp7IYH6VpORYKWhHqR+Apr7vvLmYvL8mjmpkFyPuG8TReg9rxKZt1m2xovjuUBQJGV/wShn1VjrBYpfLQuXQQ3VzyqhUMv41RZ2XeOdHZcbjf6RzWPgSbxHUzJSUa4DRhYqT+2oLeirPN1Fed6jvTByx9Z/u0295Wy7hrC7yugzrRB1tolshpYdYmn2Iv6BuA0NbP/LLr/wIkLNsO2woBmjDrBA==;31:bduwk1xrpjpVv4lxFwvEqPJPN881CP1/ALzFmsmEBS7+iN+RgVTSc1MPtNHB+kh+2Wrfbtbhii3TllCd88Qtk9sCGO5fgY/GhIxiC0IAI/ugTSqlTNx/UyrCFHxuWHR//7kTlooJYb33Yy/5oodUpLiYAi3dwln5cQ3XUjEZmRtqxk91wd+s/cKUh2SnOpFDfq9Xs9XDnkZ6VBTOdhhffOn0wbPiAQQxtoAT6EVXeTk= X-MS-TrafficTypeDiagnostic: BYAPR07MB4373: X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4373;20:HBVv0outtcW93OAQ46qMeu027/9/eaz25Dm73T+B3m0ebSghK/NYqqFLtdEK0SiKy+jTCusECrnCMEIjoJiUCJCFR99JSaCq3QSpm1KhDs1iGtkvolLLRp7z91D+S9wBy1nBU8tmq3Vd/S2XAabjIHkciEybw8BahGSUg1/MircFzInvi6PH2M8qDzj9kOVOqpM+aXarDJBR9NtfMSadUGmpyKu6sJ5LabVdwuLHVNMEBC0TTn2SRQ47EN1F4xUZxqZTP0RQoghFAuEIn6AddwlnrdiAqgcPJnw8n0YOiOxI2RSab/2nXPS9s8ojSya27NBCfaOHsDOgKLF9FRI1ZR6ZySL0ju5NeTF67VyzKvxuG9qgMX78Hi5gbA0znIxxeBJ85seYWhDF6zW3CqpNq3Z8Y/QMwAikZnX5KG7HAzX9+dw/v8oZJtV4XUS57P5bLpkaK85zAn8l8DF9nHw0pdSOzFBmENLpuWwL3098ePv1MwM8vi6lHCVrvKlsqAV+4qsaT58omnPt74PgVizVeQIEfXjk1fkugNgw9M/3683x7zk+Lvnd5EB7fW3WQnKhjNn0sQ8TbKLwFHO04UJgzxOZWq2Murz05rr7x1GttRk=;4:JjZyCLgO9E4V+xOr+KBGC16V+h7zwBLIBtsXpkzRWB5RegoRZcCYUsCR6lnJFN2qv5ZRapRL52C1wTqwJLJwAnyhRXMJjYKhzkBMO2g+cKqsFtwPJG8DxJ9vl4V1X9HYuYzGEfLRl2+qyoxP0yKxIR5+JmcDoY+Q0SbfTVUMrFPCZavHhPMkFSubaD6UpRO4bd893aWzVzM0RaknmAKjbEHQlnGD5bsOX2xmMyEFcenX3XNjrNdvorIOp6daylmbKwkQxT05A83k8n3o0TjlsVmZaMaHqIL/jKODuyZpPWvHZcZ9zhSkX3d4yOL1gkld X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:BYAPR07MB4373;BCL:0;PCL:0;RULEID:;SRVR:BYAPR07MB4373; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(376002)(39380400002)(396003)(346002)(39860400002)(366004)(189003)(199004)(2906002)(305945005)(39060400002)(7736002)(42882007)(7416002)(7406005)(956004)(476003)(2616005)(53936002)(106356001)(68736007)(6666003)(36756003)(47776003)(4326008)(5660300001)(3846002)(6116002)(25786009)(50466002)(966005)(72206003)(386003)(76506005)(54906003)(110136005)(26005)(6496006)(66066001)(105586002)(1076002)(48376002)(8936002)(50226002)(6486002)(6306002)(8676002)(486006)(81166006)(81156014)(478600001)(52116002)(186003)(59450400001)(16586007)(97736004)(16526019)(316002)(51416003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4373;H:localhost;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BYAPR07MB4373;23:XnRJ6UU7XtPbE07smLVmn0D1ODG0ZVLGLMivmy2z1?= =?us-ascii?Q?/WS2+D/u6dFYTDBJPqqPc0FU10B/SMFHR/o17BSeOUT/fbPSn3myPK3qT4+2?= =?us-ascii?Q?kIUcpLhTqGLgt2CdESYY0XjfEjDJh0aKoDt+8nt3pjrS3N5MSMFZgepZfK9t?= =?us-ascii?Q?u2lVfXO/YEjPyLZ01vVurRzfO1/7JCgosbuPnqK4pFFiM7TmKIlC+zID7FvS?= =?us-ascii?Q?m3flv+0QPs81ZwVNUH8IPJBpHSzbqUcMeoY8o/7VzwSadSfqFft33jJMjX9T?= =?us-ascii?Q?Qx+o4MszL5zfdM7+9nBI5Gob5TWKOxLMA2zJfLsX8qgwpdpYPluDv2/yqaoS?= =?us-ascii?Q?/w41KIkYy8btaw4qd0KZwB6RLcHdUPS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8sUecS8EpDJhT3g/Jc2y0BiQufHQz069fLwU544/smmZL0k434= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4373;7:w+gF5icQ2xs1tJe6hd5gejNyYWm095JgOE0uGEshL0asFzcdTblzZZh0WktqhMm+a1hn+1OLIDkHsfwaAZGC4gD5ZtovznUk3CD59GUt+9ccvjQhmwp9RpYZCr4/EtW+5bRC5t+RMwDH+LiaqkkYsJX/mIuK+yLl55+SEUxfp+2Ebc0baj66fd3WLQEsJnsoQYw/m1Ucu+li95G3Nl0EGWUiT+tzxioe7IWFKlapBdk59dR9Jff2CwqG2vjIe5CJ X-MS-Office365-Filtering-Correlation-Id: de1150a3-a85f-4620-33e5-08d5bb05bc02 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 08:19:23.7222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de1150a3-a85f-4620-33e5-08d5bb05bc02 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4373 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series enables AARCH64 with ILP32 mode. As supporting work, it introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t userspace type is used by new userspace). Also it deprecates getrlimit and setrlimit syscalls prior to prlimit64. Based on kernel v4.16. Tested with LTP, glibc testsuite, trinity, lmbench, CPUSpec. This series on github: https://github.com/norov/linux/tree/ilp32-4.16 Linaro toolchain: http://snapshots.linaro.org/components/toolchain/binaries/7.3-2018.04-rc1/aarch64-linux-gnu_ilp32/ Debian repo: http://people.linaro.org/~wookey/ilp32/ OpenSUSE repo: https://build.opensuse.org/project/show/devel:ARM:Factory:Contrib:ILP32 Changes: v3: https://lkml.org/lkml/2014/9/3/704 v4: https://lkml.org/lkml/2015/4/13/691 v5: https://lkml.org/lkml/2015/9/29/911 v6: https://lkml.org/lkml/2016/5/23/661 v7: https://lkml.org/lkml/2017/1/9/213 v8: https://lkml.org/lkml/2017/6/19/624 v9: - rebased on top of v4.16; - signal subsystem reworked to avoid code duplication, as requested by Dave Martin (patches 18 and 20); - new files introduced in series use SPDX notation for license; - linux-api and linux-arch CCed as the series changes kernel ABI; - checkpatch and other minor fixes. - Zhou Chengming's reported-by for patch 2 and signed-off-by for patch 21 removed because his email became invalid. Zhou, please share your new email. Andrew Pinski (4): arm64: rename COMPAT to AARCH32_EL0 in Kconfig arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it arm64:ilp32: add ARM64_ILP32 to Kconfig Catalin Marinas (1): arm64: ilp32: Make the Kconfig option default y Dave Martin (1): arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout James Morse (1): ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers Philipp Tomsich (1): arm64:ilp32: add vdso-ilp32 and use for signal return Yury Norov (16): compat ABI: use non-compat openat and open_by_handle_at variants 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option asm-generic: Drop getrlimit and setrlimit syscalls from default list thread: move thread bits accessors to separated file arm64: ilp32: add documentation on the ILP32 ABI for ARM64 arm64: rename functions that reference compat term arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat) arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64 arm64: introduce binfmt_elf32.c arm64: change compat_elf_hwcap and compat_elf_hwcap2 prefix to a32 arm64: ilp32: introduce binfmt_ilp32.c arm64: ilp32: share aarch32 syscall handlers arm64: signal: share lp64 signal structures and routines to ilp32 arm64: signal32: move ilp32 and aarch32 common code to separated file arm64: ilp32: introduce ilp32-specific sigframe and ucontext arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32 Documentation/arm64/ilp32.txt | 45 +++ arch/Kconfig | 15 + arch/arc/Kconfig | 1 + arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 18 +- arch/arm64/Makefile | 3 + arch/arm64/include/asm/compat.h | 19 +- arch/arm64/include/asm/elf.h | 36 +- arch/arm64/include/asm/fpsimd.h | 2 +- arch/arm64/include/asm/ftrace.h | 2 +- arch/arm64/include/asm/hwcap.h | 8 +- arch/arm64/include/asm/is_compat.h | 78 ++++ arch/arm64/include/asm/processor.h | 15 +- arch/arm64/include/asm/ptrace.h | 12 +- arch/arm64/include/asm/seccomp.h | 2 +- arch/arm64/include/asm/signal32.h | 19 +- arch/arm64/include/asm/signal32_common.h | 13 + arch/arm64/include/asm/signal_common.h | 306 +++++++++++++++ arch/arm64/include/asm/signal_ilp32.h | 23 ++ arch/arm64/include/asm/syscall.h | 2 +- arch/arm64/include/asm/thread_info.h | 4 +- arch/arm64/include/asm/unistd.h | 6 +- arch/arm64/include/asm/vdso.h | 6 + arch/arm64/include/uapi/asm/bitsperlong.h | 9 +- arch/arm64/include/uapi/asm/unistd.h | 13 + arch/arm64/kernel/Makefile | 8 +- arch/arm64/kernel/armv8_deprecated.c | 6 +- arch/arm64/kernel/asm-offsets.c | 9 +- arch/arm64/kernel/binfmt_elf32.c | 35 ++ arch/arm64/kernel/binfmt_ilp32.c | 87 +++++ arch/arm64/kernel/cpufeature.c | 28 +- arch/arm64/kernel/cpuinfo.c | 18 +- arch/arm64/kernel/debug-monitors.c | 4 +- arch/arm64/kernel/entry.S | 37 +- arch/arm64/kernel/entry32.S | 80 ---- arch/arm64/kernel/entry32_common.S | 97 +++++ arch/arm64/kernel/entry_ilp32.S | 12 + arch/arm64/kernel/head.S | 2 +- arch/arm64/kernel/hw_breakpoint.c | 8 +- arch/arm64/kernel/perf_callchain.c | 28 +- arch/arm64/kernel/perf_regs.c | 4 +- arch/arm64/kernel/process.c | 11 +- arch/arm64/kernel/ptrace.c | 36 +- arch/arm64/kernel/signal.c | 352 +++--------------- arch/arm64/kernel/signal32.c | 111 +++--- arch/arm64/kernel/signal32_common.c | 37 ++ arch/arm64/kernel/signal_ilp32.c | 65 ++++ arch/arm64/kernel/sys_compat.c | 10 +- arch/arm64/kernel/sys_ilp32.c | 90 +++++ arch/arm64/kernel/traps.c | 11 +- arch/arm64/kernel/vdso-ilp32/.gitignore | 2 + arch/arm64/kernel/vdso-ilp32/Makefile | 82 ++++ arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S | 22 ++ arch/arm64/kernel/vdso-ilp32/vdso-ilp32.lds.S | 84 +++++ arch/arm64/kernel/vdso.c | 65 +++- arch/arm64/kernel/vdso/gettimeofday.S | 20 +- arch/arm64/kernel/vdso/vdso.S | 6 +- arch/arm64/mm/mmap.c | 2 +- arch/blackfin/Kconfig | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/cris/Kconfig | 1 + arch/frv/Kconfig | 1 + arch/h8300/Kconfig | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/Kconfig | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/m32r/Kconfig | 1 + arch/m68k/Kconfig | 1 + arch/metag/Kconfig | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/microblaze/Kconfig | 1 + arch/mips/Kconfig | 1 + arch/mn10300/Kconfig | 1 + arch/nios2/Kconfig | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/Kconfig | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/parisc/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/score/Kconfig | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/sh/Kconfig | 1 + arch/sparc/Kconfig | 1 + arch/tile/Kconfig | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/tile/kernel/compat.c | 3 + arch/unicore32/Kconfig | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + arch/x86/Kconfig | 1 + arch/x86/um/Kconfig | 1 + arch/xtensa/Kconfig | 1 + drivers/clocksource/arm_arch_timer.c | 4 +- include/linux/fcntl.h | 2 +- include/linux/sched.h | 1 + include/linux/thread_bits.h | 76 ++++ include/linux/thread_info.h | 64 +--- include/uapi/asm-generic/unistd.h | 10 +- kernel/ptrace.c | 48 ++- scripts/checksyscalls.sh | 5 + 100 files changed, 1675 insertions(+), 698 deletions(-) create mode 100644 Documentation/arm64/ilp32.txt create mode 100644 arch/arm64/include/asm/is_compat.h create mode 100644 arch/arm64/include/asm/signal32_common.h create mode 100644 arch/arm64/include/asm/signal_common.h create mode 100644 arch/arm64/include/asm/signal_ilp32.h create mode 100644 arch/arm64/kernel/binfmt_elf32.c create mode 100644 arch/arm64/kernel/binfmt_ilp32.c create mode 100644 arch/arm64/kernel/entry32_common.S create mode 100644 arch/arm64/kernel/entry_ilp32.S create mode 100644 arch/arm64/kernel/signal32_common.c create mode 100644 arch/arm64/kernel/signal_ilp32.c create mode 100644 arch/arm64/kernel/sys_ilp32.c create mode 100644 arch/arm64/kernel/vdso-ilp32/.gitignore create mode 100644 arch/arm64/kernel/vdso-ilp32/Makefile create mode 100644 arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S create mode 100644 arch/arm64/kernel/vdso-ilp32/vdso-ilp32.lds.S create mode 100644 include/linux/thread_bits.h -- 2.17.0