system_64.h 409 字节
Newer Older
V
Vegard Nossum 已提交
1 2
#ifndef ASM_X86__SYSTEM_64_H
#define ASM_X86__SYSTEM_64_H
L
Linus Torvalds 已提交
3 4

#include <asm/segment.h>
J
Jeff Dike 已提交
5
#include <asm/cmpxchg.h>
L
Linus Torvalds 已提交
6 7


8 9 10 11 12 13 14 15 16 17 18 19
static inline unsigned long read_cr8(void)
{
	unsigned long cr8;
	asm volatile("movq %%cr8,%0" : "=r" (cr8));
	return cr8;
}

static inline void write_cr8(unsigned long val)
{
	asm volatile("movq %0,%%cr8" :: "r" (val) : "memory");
}

20
#include <linux/irqflags.h>
21

V
Vegard Nossum 已提交
22
#endif /* ASM_X86__SYSTEM_64_H */