]> Git Repo - J-linux.git/blob - arch/x86/include/asm/system_64.h
mm, x86: Saving vmcore with non-lazy freeing of vmas
[J-linux.git] / arch / x86 / include / asm / system_64.h
1 #ifndef _ASM_X86_SYSTEM_64_H
2 #define _ASM_X86_SYSTEM_64_H
3
4 #include <asm/segment.h>
5 #include <asm/cmpxchg.h>
6
7
8 static inline unsigned long read_cr8(void)
9 {
10         unsigned long cr8;
11         asm volatile("movq %%cr8,%0" : "=r" (cr8));
12         return cr8;
13 }
14
15 static inline void write_cr8(unsigned long val)
16 {
17         asm volatile("movq %0,%%cr8" :: "r" (val) : "memory");
18 }
19
20 #include <linux/irqflags.h>
21
22 #endif /* _ASM_X86_SYSTEM_64_H */
This page took 0.025808 seconds and 4 git commands to generate.