Message ID | 20181006025709.4019-2-Jason@zx2c4.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1157184lji; Fri, 5 Oct 2018 19:57:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV61QflkQ3l5RWjnbRE9dMtnS4tDNpcveZRjlSKa3HmaFgGo6d3zPmz0A+YwvV0rtq0u7yDL0 X-Received: by 2002:a63:b518:: with SMTP id y24-v6mr12631974pge.436.1538794655146; Fri, 05 Oct 2018 19:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538794655; cv=none; d=google.com; s=arc-20160816; b=xuFSIwznKxOm/eLJsDVLdfEF7vsJ7R5iIJdLZ56RshDufLTPXyHOUf5TAF985wKo92 RSffC0svQNNWD3C8m9jq97Uo4c2NAhg+9XjtwnW8Z0ZL3s4G/rhI26amv+0DQ3MLZmru 7logz4UnfYe3WKO9/sMSnkkWeCt9TPJ8gaMINe/Qz5X+7po/DTkiwezE6rANhCx7Lv2Q UNUnBsLMcHcSLey0lme30spLh5jcrPDXmAQP1YezmoyOxje9B9DkBs0eECpLRg7pLP9C aRVjWQPcUgRXU46/YngJrOEMXiOQRv+t4q6fbrMnXFAk7htuE4uLyUKWrjvstO/Gmv7p UhaA== 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 :dkim-signature; bh=nAIJXoC6iGpG3gXTxfNMwmL02EGiecuTTiGHcfb774I=; b=PsC/SAR7GDEgr22gWnclsYN1ucrLyTXVCMzvxwP2MckpD+olCrz0FEQInChzdnypHu X4ltfeIKmxvMMtx7NvHZ4d/8MfEZS8nv1mwEBb1MmU+hhI52l1k4/nT2nULhJ9iXuU85 y4Vs5Vt0L3TLGP+hdpbC5uSUB+HQ/lTW6nK30y2/P4qYXxCaGNhJOjmPJAzr5XSY68dw dd6VoctvgapMhx4l+mpvIvUHZgbTRAcVvS6q0B4WSuCL4L6td+NTdSNCcXlLhHWFWmKW FSoTQiiQFI28BcRBcsaUSzg3UA305K594J4Nx/8MEfMCsl2JTxN7MeABl3reNzXsoCo/ jllg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=IM8XeCP6; 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=zx2c4.com Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n15-v6si10725251pgc.143.2018.10.05.19.57.34; Fri, 05 Oct 2018 19:57:35 -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=@zx2c4.com header.s=mail header.b=IM8XeCP6; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729436AbeJFJ7F (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Sat, 6 Oct 2018 05:59:05 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:50073 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726812AbeJFJ7E (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 6 Oct 2018 05:59:04 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 2709d65b; Sat, 6 Oct 2018 02:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=mail; bh=cz3qBitK9lcOU4T8Q4EPHXFd1 i8=; b=IM8XeCP63ziJoUPJuWwoJbqP94slpXYS2c6P4c5xfgLrzZdB0q0rqc7lc d34yjklFn4PFxbUUdoBLplyOcFc+V4qnf4S7rylzBOtZ4UYSPy8Ebm8ZUmXAQBNc 1oF0EceoYREejc2QNh9b1xALPVJIvi/3ukOMSXayaqAX54MYmEG9s77iymom8Psm HsHsUEHxixcNpSK5Wa+2IUUVrxH7cUxT9SSUBgDRxj+Tig4kdTMlb7w2SRYosZRi T0y2KyNe2NfoOjlNb/xSsvAbYC8w1VlTz8NevispwrmYMzcKCD9XZfOmWYsk/9GL W2jGlU+okoH3ykqs+2iAgYsW3xeAQ== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 4bdb2774 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 6 Oct 2018 02:57:00 +0000 (UTC) From: "Jason A. Donenfeld" <Jason@zx2c4.com> To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org Cc: "Jason A. Donenfeld" <Jason@zx2c4.com> Subject: [PATCH net-next v7 01/28] ARM: makefile: use ARMv3M mode for RiscPC Date: Sat, 6 Oct 2018 04:56:42 +0200 Message-Id: <20181006025709.4019-2-Jason@zx2c4.com> In-Reply-To: <20181006025709.4019-1-Jason@zx2c4.com> References: <20181006025709.4019-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
WireGuard: Secure Network Tunnel
|
expand
|
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index d1516f85f25d..7fd4bcaf0721 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -74,7 +74,7 @@ endif arch-$(CONFIG_CPU_32v5) =-D__LINUX_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t) arch-$(CONFIG_CPU_32v4T) =-D__LINUX_ARM_ARCH__=4 -march=armv4t arch-$(CONFIG_CPU_32v4) =-D__LINUX_ARM_ARCH__=4 -march=armv4 -arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3 +arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3m # Evaluate arch cc-option calls now arch-y := $(arch-y)
The purpose of CONFIG_CPU_32v3 is to avoid ldrh/strh on the RiscPC, which is pretty much an ARMv4 device, except its bus will choke on the half-words. The way to make the C compiler not output ldrh/strh is with -march=armv3, which doesn't support them in the ISA. However, this prevents certain cryptography code from working that uses instructions like umull. Fortunately there's also -march=armv3m that does support those, making it possible to continue assembling optimized cryptography routines for our beloved RiscPC. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> --- Notes: This commit has been submitted to the proper ARM tree and is working its way upstream. It's included in this series here so that kbuild 0-day bot doesn't get too nervous about RiscPC, but is already entering the tree through arm-next. arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.0