From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=HVf2rqPl; spf=pass (domain: linaro.org, ip: 209.85.128.68, mailfrom: ard.biesheuvel@linaro.org) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by groups.io with SMTP; Fri, 31 May 2019 05:50:16 -0700 Received: by mail-wm1-f68.google.com with SMTP id u16so634907wmc.5 for ; Fri, 31 May 2019 05:50:15 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=1eU9ZUFdwHOj1nh5c1gIKvePghSCD83Hj7FM75bmPdc=; b=HVf2rqPlmRf6jIloeCLconTv0R4BJT/O5ARhyZmTXhBYrMFM9LajJCDVcJljDQLkG4 WhCzL/dwO6dUUOwXmxULf0GdfKE9DvSN//hDU4M67bnovEUhg+G0jHIGhnWh/TnZo152 vI7vCdMBUHvG2M3X4h41KYa7NHWXBw8NVOuRVk02W3S59NereE6xO3h9X7eLai7Nw3Cu ktKyHpkOsYuNFoTN7pqHBvh563z+BL6wU/p6bD8EGixqo22WvRKHqPDV+tTwby0tkRsz 8NRvL4iSoUKDAPrc8vmTk7YbVXItaMtl5QAsjjxMAZddwRidZ3iCRKPPllHgVlO0ebX4 awew== 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:mime-version:content-transfer-encoding; bh=1eU9ZUFdwHOj1nh5c1gIKvePghSCD83Hj7FM75bmPdc=; b=hWtbykX1i3EN9tHdOv/KJTYDdoTtOoqh92MqhBZnBFtVg7F5qYh3NqZ3n2yUROMrzx VmznZCXI2VJV5ZVEjNMW2VQZHgHVN1KGBQy6/Bcf6IEbkfRN3U4hvii0me6Hex6ZEOS/ hQmrrVRBzebKysSbGGyn3/f6CHPSAS+Lq0SUpqA4GTtHMKpkIn29/qAIcXBkqeCabTFc csybeZAS4CFkTImttVfLs9kktEShKhKDlc6Z15nNkB4ZKh0BXqeGNi8+iXfciypSrkgB ox9M6uOk6KHiRxMX3KI0WoqlxJjLxxYoViG6g7IQrf6RptqQ9Mgmc1dhpvqz9bm+oaUY /v/A== X-Gm-Message-State: APjAAAWH2gOJQbIfs09LyPrRnHJC11UpoArT2fRclqfTL86WoKOgAgOp G8hxkWlMOxIHtccPIpR3/V2ZFUdzSec= X-Google-Smtp-Source: APXvYqwMI/vba1bghCzsU7QQrmdPjFmrX9SZJEm7jKkku7NVRHoCo88tim5vrBZeeFTaG6PwV5jyRw== X-Received: by 2002:a1c:9906:: with SMTP id b6mr5078124wme.117.1559307014247; Fri, 31 May 2019 05:50:14 -0700 (PDT) Return-Path: Received: from sudo.home ([2a01:cb1d:112:6f00:c225:e9ff:fe2e:ea8]) by smtp.gmail.com with ESMTPSA id b9sm6385076wma.29.2019.05.31.05.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 05:50:13 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Laszlo Ersek , "Gao, Liming" , "Wang, Jian J" , Leif Lindholm , Michael D Kinney Subject: [PATCH v3 5/7] ArmPkg/ArmLib ARM: set .fpu to let Clang 7 assemble ArmV7Support.S Date: Fri, 31 May 2019 14:49:56 +0200 Message-Id: <20190531124958.8421-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190531124958.8421-1-ard.biesheuvel@linaro.org> References: <20190531124958.8421-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel --- ArmPkg/Library/ArmLib/Arm/ArmV7Support.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S b/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S index 16c56f72e973..4925f6628e1e 100644 --- a/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S +++ b/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S @@ -262,6 +262,8 @@ ASM_FUNC(ArmEnableVFP) #ifndef __clang__ mcr p10,#0x7,r0,c8,c0,#0 #else + # Set the FPU model so Clang does not choke on the next instruction + .fpu neon vmsr fpexc, r0 #endif bx lr -- 2.20.1