processor.h (d20bbfab01802e195a50435940f7e4aa747c217c) | processor.h (506ed6b53e00ba303ad778122f08e1fca7cf5efb) |
---|---|
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; --- 97 unchanged lines hidden (view full) --- 106 u16 phys_proc_id; 107 /* Core id: */ 108 u16 cpu_core_id; 109 /* Compute unit id */ 110 u8 compute_unit_id; 111 /* Index into per_cpu list: */ 112 u16 cpu_index; 113#endif | 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; --- 97 unchanged lines hidden (view full) --- 106 u16 phys_proc_id; 107 /* Core id: */ 108 u16 cpu_core_id; 109 /* Compute unit id */ 110 u8 compute_unit_id; 111 /* Index into per_cpu list: */ 112 u16 cpu_index; 113#endif |
114 u32 microcode; |
|
114} __attribute__((__aligned__(SMP_CACHE_BYTES))); 115 116#define X86_VENDOR_INTEL 0 117#define X86_VENDOR_CYRIX 1 118#define X86_VENDOR_AMD 2 119#define X86_VENDOR_UMC 3 120#define X86_VENDOR_CENTAUR 5 121#define X86_VENDOR_TRANSMETA 7 --- 52 unchanged lines hidden (view full) --- 174 unsigned int *ecx, unsigned int *edx) 175{ 176 /* ecx is often an input as well as an output. */ 177 asm volatile("cpuid" 178 : "=a" (*eax), 179 "=b" (*ebx), 180 "=c" (*ecx), 181 "=d" (*edx) | 115} __attribute__((__aligned__(SMP_CACHE_BYTES))); 116 117#define X86_VENDOR_INTEL 0 118#define X86_VENDOR_CYRIX 1 119#define X86_VENDOR_AMD 2 120#define X86_VENDOR_UMC 3 121#define X86_VENDOR_CENTAUR 5 122#define X86_VENDOR_TRANSMETA 7 --- 52 unchanged lines hidden (view full) --- 175 unsigned int *ecx, unsigned int *edx) 176{ 177 /* ecx is often an input as well as an output. */ 178 asm volatile("cpuid" 179 : "=a" (*eax), 180 "=b" (*ebx), 181 "=c" (*ecx), 182 "=d" (*edx) |
182 : "0" (*eax), "2" (*ecx)); | 183 : "0" (*eax), "2" (*ecx) 184 : "memory"); |
183} 184 185static inline void load_cr3(pgd_t *pgdir) 186{ 187 write_cr3(__pa(pgdir)); 188} 189 190#ifdef CONFIG_X86_32 --- 832 unchanged lines hidden --- | 185} 186 187static inline void load_cr3(pgd_t *pgdir) 188{ 189 write_cr3(__pa(pgdir)); 190} 191 192#ifdef CONFIG_X86_32 --- 832 unchanged lines hidden --- |