2008-06-18 11:08:48 -04:00
|
|
|
#ifndef ASM_X86__SYSTEM_64_H
|
|
|
|
#define ASM_X86__SYSTEM_64_H
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
#include <asm/segment.h>
|
2007-05-08 03:35:02 -04:00
|
|
|
#include <asm/cmpxchg.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
|
2008-01-30 07:31:08 -05: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 03:24:45 -04:00
|
|
|
#include <linux/irqflags.h>
|
2006-01-17 01:03:47 -05:00
|
|
|
|
2008-06-18 11:08:48 -04:00
|
|
|
#endif /* ASM_X86__SYSTEM_64_H */
|