First Support on Ginger and OMAP TI
[linux-ginger.git] / arch / x86 / include / asm / system_64.h
blob1159e091ad09c66a9f3efab3a387e9536493165d
1 #ifndef _ASM_X86_SYSTEM_64_H
2 #define _ASM_X86_SYSTEM_64_H
4 #include <asm/segment.h>
5 #include <asm/cmpxchg.h>
8 static inline unsigned long read_cr8(void)
10 unsigned long cr8;
11 asm volatile("movq %%cr8,%0" : "=r" (cr8));
12 return cr8;
15 static inline void write_cr8(unsigned long val)
17 asm volatile("movq %0,%%cr8" :: "r" (val) : "memory");
20 #include <linux/irqflags.h>
22 #endif /* _ASM_X86_SYSTEM_64_H */