]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/x86/include/asm/system_64.h
KVM: MMU: Introduce generic walk_addr function
[mirror_ubuntu-hirsute-kernel.git] / arch / x86 / include / asm / system_64.h
CommitLineData
1965aae3
PA
1#ifndef _ASM_X86_SYSTEM_64_H
2#define _ASM_X86_SYSTEM_64_H
1da177e4 3
1da177e4 4#include <asm/segment.h>
a436ed9c 5#include <asm/cmpxchg.h>
1da177e4 6
1da177e4 7
d3ca901f
GOC
8static inline unsigned long read_cr8(void)
9{
10 unsigned long cr8;
11 asm volatile("movq %%cr8,%0" : "=r" (cr8));
12 return cr8;
13}
14
15static inline void write_cr8(unsigned long val)
16{
17 asm volatile("movq %0,%%cr8" :: "r" (val) : "memory");
18}
19
2601e64d 20#include <linux/irqflags.h>
2ddb55f0 21
1965aae3 22#endif /* _ASM_X86_SYSTEM_64_H */