Files
OrangePi_CM5/include/asm-x86/system_64.h
T

22 lines
370 B
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
#ifndef __ASM_SYSTEM_H
#define __ASM_SYSTEM_H
#include <asm/segment.h>
2007-05-08 00:35:02 -07:00
#include <asm/cmpxchg.h>
2005-04-16 15:20:36 -07:00
2008-01-30 13:31:08 +01: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");
}
#include <linux/irqflags.h>
2006-01-17 07:03:47 +01:00
2005-04-16 15:20:36 -07:00
#endif