From patchwork Thu Dec 20 19:16:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 154356 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp48806ljp; Thu, 20 Dec 2018 11:23:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/XQujZaxuIf04/AbxtnSJT0Bi1htv87oJAs/vg8pNoURXtrSM40u8YsRxkJp/eDwkfmPqbU X-Received: by 2002:a17:902:a83:: with SMTP id 3mr23633194plp.276.1545333835949; Thu, 20 Dec 2018 11:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545333835; cv=none; d=google.com; s=arc-20160816; b=eLlrfhtF2SvfSpvbi7rrE+tzB5Je1YAAuUeDg9n4X2k8f7Q4/ncsyZY53uxd1BS5Jb sa+EvEezYlC8B+/hAh6JR2poCem0FCwCIaI0UnBqTAKCq5c+o2gXZhgstwiRPxXlql79 yUahBOJgh7/fA4pXFwdzg7PH48BmwzTh6YG71fr/IE+PEmOjvlpvL4aFQ7FT/jxBfZXz 1eGYJL6D2eTsMlwcTV3o30R4wu6ctr0jgrty6o5tEdXpeeaqSLZZlIjRdfyn4rOl6M8C 5rJRHCSqKZ/E1miC9tgsu6AfeAqofBT7uP4EcOOkVOvPsCk35UST6UMwi4eQ9ntr86w3 I5XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=guYFlypStA1QmrJfbcJo3sSVJpEULxtBtFKmQtR4h60=; b=BnmWWw0Mx04m5zGDgoraDdBeWDaXh1VExBln6VyLkswPAGXhRHhlLzfciKBrz6mG+D 05VmAGxRac9BCSa3khY1KcHBnn+vq/AKwYSEK87vN6WGZWP/G95NgJkmlxn5WZTDYJJD BR/ABfqCRnjimqPb+l4EE8akUnzcjUcHTWQHmAfp8T0dnGJTlP52aoScgt73ZBfNEb5D A4RAbfOlEteq/N5i/VqMWmNrMtc5VGucZyfsMhNAQXrfjDVftBmnY3VYhanB0jpqfvIr oJomlzCmiGPw7AJg+gvHk+HgTh9fLKWNQOnEG5tACjVuOwlEJRgE6uyIFayD4iliZQRq DKCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eXSTSfQZ; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id b60si19036984plc.95.2018.12.20.11.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 11:23:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eXSTSfQZ; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id CDFD1211A4587; Thu, 20 Dec 2018 11:23:54 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::443; helo=mail-wr1-x443.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C58552117CE94 for ; Thu, 20 Dec 2018 11:16:59 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id v13so2907516wrw.5 for ; Thu, 20 Dec 2018 11:16:59 -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:mime-version :content-transfer-encoding; bh=JX4+0T241Kfi9GB9QWsBsBK4Bx6H48BgQaP2CEXCE5o=; b=eXSTSfQZeKhtUB3idmpc+jdib4S/HD0t+aRatcUY7wZBGaCN1QmBZwDVfKfKlwoM/n BBLMZ0WjkqSyiE0g0tejQwTmAsXjQyRLff00sAJY9Qmd7OQ/2wcMbCLkHBWl2b6zYzVH 0XWzqPnqm7PHg8ThpoJbfngb4GRGyi//0Z4II= 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:mime-version :content-transfer-encoding; bh=JX4+0T241Kfi9GB9QWsBsBK4Bx6H48BgQaP2CEXCE5o=; b=GVaCLLsV6+0Cw3Y2BUzZq8doeuYCkuzqY+tZam+Vlxhw9x4OxjZ5mf36PF8ZStLUXy cu+yu3Fc+SiSOkTVIEBm0Rktkto9XBaF8X7fQG2io5bMnvXst2KBkIvmgR9jVeZWTnFn hllTB61+S8aNORC4J758ArzBVKIoaZ4AafgT0bl52pgO0FIa+HtNKUqMDUnpgca3jBRW QChXxOT4iyspFfdRBOheUpaAqFIRoh5Wz+hho93nCp3gw9a/ALiCfTZd2rhBMNfH+Bl/ bnCaO6HxZo8BVX2dA5U1Z4vsekR8VUDZthZtZ3BwDvxIOFqPOy0jluNWSI5eUsCiskGg kz2A== X-Gm-Message-State: AA+aEWYP9vP5DU3430Dkad21s5C4UGKwlLThrXKgZ8zGQuleLCgPUcPd UsIeYby/qIqiICSaACys0eoKFF3jKeSZ1w== X-Received: by 2002:adf:8c09:: with SMTP id z9mr23958234wra.301.1545333417554; Thu, 20 Dec 2018 11:16:57 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:5cfa:bdc5:9fc2:e6f4]) by smtp.gmail.com with ESMTPSA id r64sm11213841wmg.5.2018.12.20.11.16.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 11:16:55 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 20 Dec 2018 20:16:53 +0100 Message-Id: <20181220191653.8671-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [edk2] [PATCH] ArmPkg/ArmLib ARM: set .fpu to let Clang 7 assemble ArmV7Support.S X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Clang 7 complains about the vmsr instruction in ArmV7Support.S, which is only available on cores that implement some flavour of VFP. So set the .fpu to NEON like we do in some other places. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmPkg/Library/ArmLib/Arm/ArmV7Support.S | 1 + 1 file changed, 1 insertion(+) -- 2.19.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S b/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S index 281499b46cbc..1808962ee3e2 100644 --- a/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S +++ b/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S @@ -268,6 +268,7 @@ ASM_FUNC(ArmEnableVFP) #ifndef __clang__ mcr p10,#0x7,r0,c8,c0,#0 #else + .fpu neon vmsr fpexc, r0 #endif bx lr