processor.h (6eebdda35e6b18d0dddb2a44e34211bd94f0cad6) processor.h (9bd1190a11c9d2c59d35cb999b8d170ad52aab5f)
1#ifndef _ASM_X86_PROCESSOR_H
2#define _ASM_X86_PROCESSOR_H
3
4#include <asm/processor-flags.h>
5
6/* Forward declaration, a strange C thing */
7struct task_struct;
8struct mm_struct;

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

418 };
419};
420
421DECLARE_PER_CPU_FIRST(union irq_stack_union, irq_stack_union);
422DECLARE_INIT_PER_CPU(irq_stack_union);
423
424DECLARE_PER_CPU(char *, irq_stack_ptr);
425DECLARE_PER_CPU(unsigned int, irq_count);
1#ifndef _ASM_X86_PROCESSOR_H
2#define _ASM_X86_PROCESSOR_H
3
4#include <asm/processor-flags.h>
5
6/* Forward declaration, a strange C thing */
7struct task_struct;
8struct mm_struct;

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

418 };
419};
420
421DECLARE_PER_CPU_FIRST(union irq_stack_union, irq_stack_union);
422DECLARE_INIT_PER_CPU(irq_stack_union);
423
424DECLARE_PER_CPU(char *, irq_stack_ptr);
425DECLARE_PER_CPU(unsigned int, irq_count);
426extern unsigned long kernel_eflags;
426extern asmlinkage void ignore_sysret(void);
427#else /* X86_64 */
428#ifdef CONFIG_CC_STACKPROTECTOR
429/*
430 * Make sure stack canary segment base is cached-aligned:
431 * "For Intel Atom processors, avoid non zero segment base address
432 * that is not aligned to cache line boundary at all cost."
433 * (Optim Ref Manual Assembly/Compiler Coding Rule 15.)

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

753{
754#ifndef CONFIG_X86_DEBUGCTLMSR
755 if (boot_cpu_data.x86 < 6)
756 return;
757#endif
758 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctlmsr);
759}
760
427extern asmlinkage void ignore_sysret(void);
428#else /* X86_64 */
429#ifdef CONFIG_CC_STACKPROTECTOR
430/*
431 * Make sure stack canary segment base is cached-aligned:
432 * "For Intel Atom processors, avoid non zero segment base address
433 * that is not aligned to cache line boundary at all cost."
434 * (Optim Ref Manual Assembly/Compiler Coding Rule 15.)

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

754{
755#ifndef CONFIG_X86_DEBUGCTLMSR
756 if (boot_cpu_data.x86 < 6)
757 return;
758#endif
759 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctlmsr);
760}
761
762extern void set_task_blockstep(struct task_struct *task, bool on);
763
761/*
762 * from system description table in BIOS. Mostly for MCA use, but
763 * others may find it useful:
764 */
765extern unsigned int machine_id;
766extern unsigned int machine_submodel_id;
767extern unsigned int BIOS_revision;
768

--- 231 unchanged lines hidden ---
764/*
765 * from system description table in BIOS. Mostly for MCA use, but
766 * others may find it useful:
767 */
768extern unsigned int machine_id;
769extern unsigned int machine_submodel_id;
770extern unsigned int BIOS_revision;
771

--- 231 unchanged lines hidden ---