Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1524108ybi; Wed, 17 Jul 2019 17:03:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUUaafBcD/0Zk00SYy78I/6bs1cg7gInAEw1ivIZyE6Ok57CN7HoXHOjjcP0KMmdrkiuKW X-Received: by 2002:a17:90a:22c6:: with SMTP id s64mr48234197pjc.5.1563408208337; Wed, 17 Jul 2019 17:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563408208; cv=none; d=google.com; s=arc-20160816; b=Kg7rkIhG5CD+Sfc8IURc6VegwsC/Q1G0OjeEIQyTsGsRCVS7TOGb+6TQKSNkx5C2LM KWl844MmY4htTLLvjMNSuEVWU6Soet2gGcUTp6H9rzuTCbWDmLKoWCMNPDtY+UCTvKcr WTQb595WmcAdJoAhdA8L8opzlx/UBAXFlE6RJJJ/kfGy2ScuAU19VMhKfXKESbWUhXHW VGxIaTl0BCoTIHIGpdEN3kZirIKGQr7h6EaMyDM2Ow3/1ohpdJambso+s+8okBuuyZmD gEG5zXrgaZ217u73/VOGdCzTZ1MkGLS7+gITiJo3MRRNwsYwHSNL+ysrIjLm7x/N7z9D kAtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=d2opEawD5+UpjHd3NqyX+5wHPW1XJIxl9MSYmfk275Q=; b=ZEiJyo/OYo6tjUzVBzJiLFTzYHb9MWCwOFTncifHX/dgGIpYL9WWWZFq9ZPjo3Q70B L9lUDdi5DwNkvxFwG2863XWsw7kayv2GJjHJCWNhF8yz6qAaakmIdYY+2cwUKkNP+BvQ vQKUd1DJ7aGVqCh+vwuzFDrsfxd1lSErUZxymAIKctgHgh8Akb6T6pWf/sapgieANuSM 9O4gbcjmck6KeEGS+MXvF0XV6g5CIyhMcIe++96dK90IjDK/j4jqBZ2ycteJJ2+8TAFM MPInc9l9edyjAxlu/4xJVG4nDcBeedtA057pcfyaMJR9QQi/ErLErUxu3891T6GlsVZz Buew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JzADRtkO; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d186si179194pgc.46.2019.07.17.17.03.11; Wed, 17 Jul 2019 17:03:28 -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=@google.com header.s=20161025 header.b=JzADRtkO; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbfGRACn (ORCPT + 99 others); Wed, 17 Jul 2019 20:02:43 -0400 Received: from mail-pl1-f202.google.com ([209.85.214.202]:54373 "EHLO mail-pl1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbfGRACn (ORCPT ); Wed, 17 Jul 2019 20:02:43 -0400 Received: by mail-pl1-f202.google.com with SMTP id u10so12882776plq.21 for ; Wed, 17 Jul 2019 17:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=d2opEawD5+UpjHd3NqyX+5wHPW1XJIxl9MSYmfk275Q=; b=JzADRtkOw2096YFXxVSMAzsSWjQX8A9aoK4y1dNuoORdeMgF6K2He4c4O4zv+SvN1C UNqNMY/GIiooHoE15NvVgxlMs/qpJxGGW8RFAoHq/wQ6szsqmG6LnRHB4dULrMiW4Vzg IUj4LTC/4PLSbvqJwgooz1Mlzhu1UhCeAzoMilvUyGj/7izvs3+tWqOjcFQR2KUg25Si omfLoHXCTMhlrVNQEY9J5rCa7XG2EOcD+J5GGbnvSsBg6GUf8Gelz5fbj6EqKMRp7c0Y L5YSYp3s7fpOT6STKRp3YIixv/u1jSSDhY/5h3ag4LEIAN3yGLS7G6GAXS9ckGFD8wu0 1tmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=d2opEawD5+UpjHd3NqyX+5wHPW1XJIxl9MSYmfk275Q=; b=T1fOldl6iJ6NekwKGsyqDKex6rmZ6WjkBX8djz3yXVrVa14FB4wxcJ2HSltb38+/M0 naz2FeN9Qofi7uPfQ9VCZsAAx94fLGimIcOGuxSUG+dx1/7ad1yIxy2a/FIYtZbon2If TsoLwQgKPivr3qL3nMlkpd+yLJnVy2ryTE9xeQLNZIKABSvn2mTfTRVRKhfMmM6rrC+1 PBvcZ7nc/m1M9X/UBvZO/2IHa/3Z2N+saKOAkvS7EmeoAlv1xIko4LUOOg6TMNyqD+3U RMiZfCG3+0LWXKANsPpLw1RfRuOZtiRGc+iVcJB5/TNFVZXaAD+st3BYfMTy2ZeFO9VT ZYWg== X-Gm-Message-State: APjAAAXq6GqhWXB53TeeVhadKTRZO5DOnxy34GbcYDuNRc3v9liYuIev xt7YuCibDtwW15fTNerOrjP7LW0tgZuK/Am42DEJvQ== X-Received: by 2002:a63:a35c:: with SMTP id v28mr728662pgn.144.1563408162493; Wed, 17 Jul 2019 17:02:42 -0700 (PDT) Date: Wed, 17 Jul 2019 17:02:05 -0700 In-Reply-To: <20190718000206.121392-1-vaibhavrustagi@google.com> Message-Id: <20190718000206.121392-2-vaibhavrustagi@google.com> Mime-Version: 1.0 References: <20190718000206.121392-1-vaibhavrustagi@google.com> X-Mailer: git-send-email 2.22.0.510.g264f2c817a-goog Subject: [PATCH 1/2] x86/purgatory: add -mno-sse, -mno-mmx, -mno-sse2 to Makefile From: Vaibhav Rustagi To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Vivek Goyal , Vaibhav Rustagi , Nick Desaulniers , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Compiling the purgatory code with clang results in using of mmx registers. $ objdump -d arch/x86/purgatory/purgatory.ro | grep xmm 112: 0f 28 00 movaps (%rax),%xmm0 115: 0f 11 07 movups %xmm0,(%rdi) 122: 0f 28 00 movaps (%rax),%xmm0 125: 0f 11 47 10 movups %xmm0,0x10(%rdi) Add -mno-sse, -mno-mmx, -mno-sse2 to avoid generating SSE instructions. Signed-off-by: Vaibhav Rustagi --- arch/x86/purgatory/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 3cf302b26332..3589ec4a28c7 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -20,6 +20,7 @@ KCOV_INSTRUMENT := n # sure how to relocate those. Like kexec-tools, use custom flags. KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -Os -mcmodel=large +KBUILD_CFLAGS += -mno-mmx -mno-sse -mno-sse2 KBUILD_CFLAGS += -m$(BITS) KBUILD_CFLAGS += $(call cc-option,-fno-PIE) -- 2.22.0.510.g264f2c817a-goog