segment.h (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) segment.h (39163d5479285a36522b6e8f9cc568cc4987db08)
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#include <asm/ibt.h>
8

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

51#define SEGMENT_TI_MASK 0x4
52/* LDT segment has TI set ... */
53#define SEGMENT_LDT 0x4
54/* ... GDT has it cleared */
55#define SEGMENT_GDT 0x0
56
57#define GDT_ENTRY_INVALID_SEG 0
58
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#include <asm/ibt.h>
8

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

51#define SEGMENT_TI_MASK 0x4
52/* LDT segment has TI set ... */
53#define SEGMENT_LDT 0x4
54/* ... GDT has it cleared */
55#define SEGMENT_GDT 0x0
56
57#define GDT_ENTRY_INVALID_SEG 0
58
59#ifdef CONFIG_X86_32
59#if defined(CONFIG_X86_32) && !defined(BUILD_VDSO32_64)
60/*
61 * The layout of the per-CPU GDT under Linux:
62 *
63 * 0 - null <=== cacheline #1
64 * 1 - reserved
65 * 2 - reserved
66 * 3 - reserved
67 *

--- 289 unchanged lines hidden ---
60/*
61 * The layout of the per-CPU GDT under Linux:
62 *
63 * 0 - null <=== cacheline #1
64 * 1 - reserved
65 * 2 - reserved
66 * 3 - reserved
67 *

--- 289 unchanged lines hidden ---