From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AFSGD/XCA9IkBE7/mNJlun+2TfZbIouxq9RVXhhGHvKGYSNCdA+rxW0qbTsa6FoIJ5yuZ0cgsFYivQ== 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: [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: , X-List-Received-Date: Thu, 20 Dec 2018 19:17:00 -0000 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. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmPkg/Library/ArmLib/Arm/ArmV7Support.S | 1 + 1 file changed, 1 insertion(+) 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 -- 2.19.2