Xen Test Framework
Data Structures | Functions
x86-gate.h File Reference

x86 Gate Descriptor infrastructure. More...

#include <xtf/lib.h>
+ Include dependency graph for x86-gate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  x86_gate32
 8-byte gate - Protected mode IDT entry, GDT task/call gate. More...
 
struct  x86_gate64
 16-byte gate - Long mode IDT entry, GDT call gate. More...
 

Functions

static void pack_x86_gate32 (struct x86_gate32 *g, unsigned int type, unsigned int sel, uint32_t offset, unsigned int dpl, unsigned int count)
 
static void pack_x86_gate64 (struct x86_gate64 *g, unsigned int type, unsigned int sel, uint64_t offset, unsigned int dpl, unsigned int ist)
 
static void pack_gate (env_gate *g, unsigned int type, unsigned int sel, unsigned long offset, unsigned int dpl, unsigned int other)
 
static void pack_task_gate (env_gate *g, unsigned int selector)
 
static void pack_call_gate (env_gate *g, unsigned int sel, unsigned long offset, unsigned int dpl, unsigned int other)
 
static void pack_intr_gate (env_gate *g, unsigned int sel, unsigned long offset, unsigned int dpl, unsigned int other)
 
static void pack_trap_gate (env_gate *g, unsigned int sel, unsigned long offset, unsigned int dpl, unsigned int other)
 

Detailed Description

x86 Gate Descriptor infrastructure.

Definition in file x86-gate.h.

Function Documentation

◆ pack_x86_gate32()

static void pack_x86_gate32 ( struct x86_gate32 g,
unsigned int  type,
unsigned int  sel,
uint32_t  offset,
unsigned int  dpl,
unsigned int  count 
)
inlinestatic

Definition at line 28 of file x86-gate.h.

+ Here is the caller graph for this function:

◆ pack_x86_gate64()

static void pack_x86_gate64 ( struct x86_gate64 g,
unsigned int  type,
unsigned int  sel,
uint64_t  offset,
unsigned int  dpl,
unsigned int  ist 
)
inlinestatic

Definition at line 62 of file x86-gate.h.

+ Here is the caller graph for this function:

◆ pack_gate()

static void pack_gate ( env_gate *  g,
unsigned int  type,
unsigned int  sel,
unsigned long  offset,
unsigned int  dpl,
unsigned int  other 
)
inlinestatic

Definition at line 92 of file x86-gate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pack_task_gate()

static void pack_task_gate ( env_gate *  g,
unsigned int  selector 
)
inlinestatic

Definition at line 105 of file x86-gate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pack_call_gate()

static void pack_call_gate ( env_gate *  g,
unsigned int  sel,
unsigned long  offset,
unsigned int  dpl,
unsigned int  other 
)
inlinestatic

Definition at line 110 of file x86-gate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pack_intr_gate()

static void pack_intr_gate ( env_gate *  g,
unsigned int  sel,
unsigned long  offset,
unsigned int  dpl,
unsigned int  other 
)
inlinestatic

Definition at line 117 of file x86-gate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pack_trap_gate()

static void pack_trap_gate ( env_gate *  g,
unsigned int  sel,
unsigned long  offset,
unsigned int  dpl,
unsigned int  other 
)
inlinestatic

Definition at line 124 of file x86-gate.h.

+ Here is the call graph for this function: