[funini.com] -> [kei@sodan] -> Kernel Reading

root/include/asm-x86/system_64.h

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. read_cr8
  2. write_cr8

#ifndef ASM_X86__SYSTEM_64_H
#define ASM_X86__SYSTEM_64_H

#include <asm/segment.h>
#include <asm/cmpxchg.h>


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>

#endif /* ASM_X86__SYSTEM_64_H */

/* [<][>][^][v][top][bottom][index][help] */

[funini.com] -> [kei@sodan] -> Kernel Reading