aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/processor.h')
-rw-r--r--include/asm-x86/processor.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index 87466b6d3b92..c6b749a018a7 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -96,7 +96,12 @@ struct cpuinfo_x86 {
96#define X86_VENDOR_NUM 9 96#define X86_VENDOR_NUM 9
97#define X86_VENDOR_UNKNOWN 0xff 97#define X86_VENDOR_UNKNOWN 0xff
98 98
99/*
100 * capabilities of CPUs
101 */
99extern struct cpuinfo_x86 boot_cpu_data; 102extern struct cpuinfo_x86 boot_cpu_data;
103extern struct cpuinfo_x86 new_cpu_data;
104extern struct tss_struct doublefault_tss;
100 105
101#ifdef CONFIG_SMP 106#ifdef CONFIG_SMP
102DECLARE_PER_CPU(struct cpuinfo_x86, cpu_info); 107DECLARE_PER_CPU(struct cpuinfo_x86, cpu_info);
@@ -107,11 +112,22 @@ DECLARE_PER_CPU(struct cpuinfo_x86, cpu_info);
107#define current_cpu_data boot_cpu_data 112#define current_cpu_data boot_cpu_data
108#endif 113#endif
109 114
115void cpu_detect(struct cpuinfo_x86 *c);
116
117extern void identify_cpu(struct cpuinfo_x86 *);
118extern void identify_boot_cpu(void);
119extern void identify_secondary_cpu(struct cpuinfo_x86 *);
110extern void print_cpu_info(struct cpuinfo_x86 *); 120extern void print_cpu_info(struct cpuinfo_x86 *);
111extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); 121extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c);
112extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); 122extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
113extern unsigned short num_cache_leaves; 123extern unsigned short num_cache_leaves;
114 124
125#if defined(CONFIG_X86_HT) || defined(CONFIG_X86_64)
126extern void detect_ht(struct cpuinfo_x86 *c);
127#else
128static inline void detect_ht(struct cpuinfo_x86 *c) {}
129#endif
130
115static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, 131static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
116 unsigned int *ecx, unsigned int *edx) 132 unsigned int *ecx, unsigned int *edx)
117{ 133{
@@ -205,6 +221,11 @@ struct tss_struct {
205 221
206DECLARE_PER_CPU(struct tss_struct, init_tss); 222DECLARE_PER_CPU(struct tss_struct, init_tss);
207 223
224/* Save the original ist values for checking stack pointers during debugging */
225struct orig_ist {
226 unsigned long ist[7];
227};
228
208#ifdef CONFIG_X86_32 229#ifdef CONFIG_X86_32
209# include "processor_32.h" 230# include "processor_32.h"
210#else 231#else
@@ -547,8 +568,28 @@ extern void select_idle_routine(const struct cpuinfo_x86 *c);
547 568
548extern unsigned long boot_option_idle_override; 569extern unsigned long boot_option_idle_override;
549 570
571extern void enable_sep_cpu(void);
572extern int sysenter_setup(void);
573
574/* Defined in head.S */
575extern struct desc_ptr early_gdt_descr;
576
577extern void cpu_set_gdt(int);
578extern void switch_to_new_gdt(void);
579extern void cpu_init(void);
580extern void init_gdt(int cpu);
581
582/* from system description table in BIOS. Mostly for MCA use, but
583 * others may find it useful. */
584extern unsigned int machine_id;
585extern unsigned int machine_submodel_id;
586extern unsigned int BIOS_revision;
587extern unsigned int mca_pentium_flag;
588
550/* Boot loader type from the setup header */ 589/* Boot loader type from the setup header */
551extern int bootloader_type; 590extern int bootloader_type;
591
592extern char ignore_fpu_irq;
552#define cache_line_size() (boot_cpu_data.x86_cache_alignment) 593#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
553 594
554#define HAVE_ARCH_PICK_MMAP_LAYOUT 1 595#define HAVE_ARCH_PICK_MMAP_LAYOUT 1