Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3067324pxj; Mon, 10 May 2021 17:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAwVLQYFNOuPLuehJuBpKZKaTOLThrc+QAtYXeYLt/x0ADk8IHjA1e4GXw+fYNTO1FwG9j X-Received: by 2002:a92:4a0b:: with SMTP id m11mr20865683ilf.254.1620694621316; Mon, 10 May 2021 17:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620694621; cv=none; d=google.com; s=arc-20160816; b=0S+DiSzN7CgXnKq7/7aDGAXfRBQDx2JFb458oHhJzJ3H3lJLybD+GZJ2VCNxTc3vk6 x1B+re3nxeMkydU5H3ymfdKI16+wKu7Wy/r6P+hRwO0p3Qz9BNa3M4QYnYGEAGb00CeX HDNEpr8bn6PYlfIOCLj6Pq72/97mTBk5pYCiU5ncEWpeYEt1QSZqezUnLjXES6EKZEK+ g9lFtYjDXa0DT43giAfXKCgq13bAHZpihnQCP3PbKm8s8UtME9J5Zytj/D0TUNUW5owa 0ZqTKC46+IQHUJjvXtVr0Crc3R5p2Ls7i7/SjD4dE+qW1jvKqP+DtQq8I0BVpFf80yYI 3dQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=qy1RPLxE9OinSWwKZJeXE4qaevlltN3Sf9Y5raguAv0=; b=qLW/38TSJ6Wb4Hr6dFut7Wf+4XjLzJ2C9zGv8rQoSC3zwadrvm3ZWttqGn0Fenwnbs lz3Y6VcM+NlKETtZkHkWfeqppTU2E+C3w2oBKySii+KNEk+KcGZDslcPm7i+621rhtee fEL7r1cPqAHip43Ael8YpoIiT+dq4pjd9yDqJ5plHS6ad6AK4hqyqWGEP4Krb0NrD+E7 tLBF5eMBhuDlTGF4sq7hve3kHc8nirsJFTOghljw4ZZ9ugMijOUywueEyu3v1NGlVlcE 6bv6J0xe0+mklBc/4dSvRZvxcUY8AEAKXQptTcFyZjVnW99/G0XRRZJcSLueQpSRDjzG c27Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b=RzeZMrXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si17837793ilf.135.2021.05.10.17.56.49; Mon, 10 May 2021 17:57:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b=RzeZMrXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbhEKA5R (ORCPT + 99 others); Mon, 10 May 2021 20:57:17 -0400 Received: from terminus.zytor.com ([198.137.202.136]:50685 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbhEKA5H (ORCPT ); Mon, 10 May 2021 20:57:07 -0400 Received: from tazenda.hos.anvin.org ([IPv6:2601:646:8602:8be0:7285:c2ff:fefb:fd4]) (authenticated bits=0) by mail.zytor.com (8.16.1/8.15.2) with ESMTPSA id 14B0tdw62504247 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 10 May 2021 17:55:48 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 14B0tdw62504247 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021042801; t=1620694549; bh=qy1RPLxE9OinSWwKZJeXE4qaevlltN3Sf9Y5raguAv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RzeZMrXQRjxhccAi/Nrtfjw1C9SxfbkmxtVfJddn0rBbM9YmMwCWecyu9PTObToUA gVU598sQtANEWvq/1St16rfpc8licJN7BypRmclzTljJ2IJjdkr3fCQpmF/Qe1d08o qGmyjD8NUUb3tALHyDeFrjLKe8whY8jr5BIbdP/9kj+JOdpivKHGdnVQTB/Dq/Pouo UMlOat4d9m+1Gh5BcaiSslZqdj5AoUp5W/x8gDotOZOLnCBynvRHkky4ThxFfU74Sd zFYdcRe82WcpmVHxOU1hmeLZLaLhScM6+nx515kJjYj1IIyCTvz/2wDAosH2Aqbuhr UxkkDTy1sbudw== From: "H. Peter Anvin" To: Ingo Molnar , Thomas Gleixner , Borislav Petkov , Andy Lutomirski Cc: Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson , Linux Kernel Mailing List , "H. Peter Anvin (Intel)" Subject: [PATCH 1/6] x86/traps: add X86_NR_HW_TRAPS to Date: Mon, 10 May 2021 17:55:26 -0700 Message-Id: <20210511005531.1065536-2-hpa@zytor.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210511005531.1065536-1-hpa@zytor.com> References: <20210511005531.1065536-1-hpa@zytor.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "H. Peter Anvin (Intel)" The x86 architecture supports up to 32 trap vectors. Add that constant to . Signed-off-by: H. Peter Anvin (Intel) --- arch/x86/include/asm/trapnr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/trapnr.h b/arch/x86/include/asm/trapnr.h index f5d2325aa0b7..f0baf92da20b 100644 --- a/arch/x86/include/asm/trapnr.h +++ b/arch/x86/include/asm/trapnr.h @@ -27,6 +27,7 @@ #define X86_TRAP_VE 20 /* Virtualization Exception */ #define X86_TRAP_CP 21 /* Control Protection Exception */ #define X86_TRAP_VC 29 /* VMM Communication Exception */ +#define X86_NR_HW_TRAPS 32 /* Max hardware trap number */ #define X86_TRAP_IRET 32 /* IRET Exception */ #endif -- 2.31.1