2008-10-23 12:26:29 +07:00
|
|
|
#ifndef _ASM_X86_SYSTEM_64_H
|
|
|
|
#define _ASM_X86_SYSTEM_64_H
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
#include <asm/segment.h>
|
2007-05-08 14:35:02 +07:00
|
|
|
#include <asm/cmpxchg.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
|
2008-01-30 19:31:08 +07:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
|
2006-07-03 14:24:45 +07:00
|
|
|
#include <linux/irqflags.h>
|
2006-01-17 13:03:47 +07:00
|
|
|
|
2008-10-23 12:26:29 +07:00
|
|
|
#endif /* _ASM_X86_SYSTEM_64_H */
|