segment.h (6bde8ef51c917a657476310728d6cb3de6bac9e4) segment.h (1aa9aa8ee517e0443b06e816a4fd2d15f2113615)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_SEGMENT_H
3#define _ASM_X86_SEGMENT_H
4
5#include <linux/const.h>
6#include <asm/alternative.h>
7
8/*

--- 216 unchanged lines hidden (view full) ---

225#ifndef CONFIG_PARAVIRT_XXL
226# define get_kernel_rpl() 0
227#endif
228
229#define IDT_ENTRIES 256
230#define NUM_EXCEPTION_VECTORS 32
231
232/* Bitmask of exception vectors which push an error code on the stack: */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_SEGMENT_H
3#define _ASM_X86_SEGMENT_H
4
5#include <linux/const.h>
6#include <asm/alternative.h>
7
8/*

--- 216 unchanged lines hidden (view full) ---

225#ifndef CONFIG_PARAVIRT_XXL
226# define get_kernel_rpl() 0
227#endif
228
229#define IDT_ENTRIES 256
230#define NUM_EXCEPTION_VECTORS 32
231
232/* Bitmask of exception vectors which push an error code on the stack: */
233#define EXCEPTION_ERRCODE_MASK 0x00027d00
233#define EXCEPTION_ERRCODE_MASK 0x20027d00
234
235#define GDT_SIZE (GDT_ENTRIES*8)
236#define GDT_ENTRY_TLS_ENTRIES 3
237#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES* 8)
238
239#ifdef CONFIG_X86_64
240
241/* Bit size and mask of CPU number stored in the per CPU data (and TSC_AUX) */

--- 151 unchanged lines hidden ---
234
235#define GDT_SIZE (GDT_ENTRIES*8)
236#define GDT_ENTRY_TLS_ENTRIES 3
237#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES* 8)
238
239#ifdef CONFIG_X86_64
240
241/* Bit size and mask of CPU number stored in the per CPU data (and TSC_AUX) */

--- 151 unchanged lines hidden ---