[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
intrinsic.h File Reference
#include "threads/mmu.h"
Include dependency graph for intrinsic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 __attribute__ ((always_inline)) static __inline void lcr3(uint64_t val)
 
__asm __volatile ("wrmsr" ::"c"(ecx), "d"(edx), "a"(eax))
 

Variables

uint64_t val
 
 eax = (uint32_t) val
 
 edx = (uint32_t) (val >> 32)
 

Function Documentation

◆ __attribute__()

__attribute__ ( (always_inline)  )
10 {
11 __asm __volatile("movq %0, %%cr3" : : "r" (val));
12}
__asm __volatile("wrmsr" ::"c"(ecx), "d"(edx), "a"(eax))
uint64_t val
Definition: intrinsic.h:123
Here is the call graph for this function:

◆ __volatile()

__asm __volatile ( "wrmsr" ::"c"  ecx,
"d"  edx,
"a"  eax 
)
Here is the caller graph for this function:

Variable Documentation

◆ eax

eax = (uint32_t) val

◆ edx

edx = (uint32_t) (val >> 32)

◆ val

uint64_t val
Initial value:
{
eax
Definition: intrinsic.h:125
edx
Definition: intrinsic.h:126
unsigned int uint32_t
Definition: stdint.h:26