gates.h File Reference

#include <libc.h>

Go to the source code of this file.

Defines

#define __MACHDEP_GATES_H__   1
#define TASKGATE_ENTER
#define TASKGATE_LEAVE

Functions

void handle_nmi (int n)
void setgate2 (struct gate_descriptor *gd, void *func, int args, int type, int dpl, int xx)
void setgate (struct gate_descriptor *gd, void *func, int args, int type, int dpl)
void setsegment2 (struct segment_descriptor *sd, void *base, size_t limit, int type, int dpl, int def32, int gran, int xx)
void setsegment (struct segment_descriptor *sd, void *base, size_t limit, int type, int dpl, int def32, int gran)
void settaskgate2 (struct gate_descriptor *gd, u_int selector, int args, int type, int dpl, int xx)
void settaskgate (struct gate_descriptor *gd, u_int selector, int args, int type, int dpl)
void gdt_dump (t_printf_fn printf_fn, char *s, union descriptor *base, int slot)
void idt_dump (t_printf_fn printf_fn, char *s, union descriptor *base, int slot)
void tss_dump (t_printf_fn printf_fn, char *s, t_tss *tss)


Define Documentation

#define __MACHDEP_GATES_H__   1
 

#define TASKGATE_ENTER
 

Value:

u_int __fake_bp;\
  __asm __volatile ("movl %%esp, %0" : "=m" (__fake_bp));\
  __entry_point:

#define TASKGATE_LEAVE
 

Value:

__asm __volatile ("movl %0, %%esp" : : "m" (__fake_bp));\
 __asm __volatile ("iret");\
 goto __entry_point;


Function Documentation

void gdt_dump t_printf_fn  printf_fn,
char *  s,
union descriptor base,
int  slot
 

void handle_nmi int  n  ) 
 

void idt_dump t_printf_fn  printf_fn,
char *  s,
union descriptor base,
int  slot
 

void setgate struct gate_descriptor gd,
void *  func,
int  args,
int  type,
int  dpl
 

void setgate2 struct gate_descriptor gd,
void *  func,
int  args,
int  type,
int  dpl,
int  xx
 

void setsegment struct segment_descriptor sd,
void *  base,
size_t  limit,
int  type,
int  dpl,
int  def32,
int  gran
 

void setsegment2 struct segment_descriptor sd,
void *  base,
size_t  limit,
int  type,
int  dpl,
int  def32,
int  gran,
int  xx
 

void settaskgate struct gate_descriptor gd,
u_int  selector,
int  args,
int  type,
int  dpl
 

void settaskgate2 struct gate_descriptor gd,
u_int  selector,
int  args,
int  type,
int  dpl,
int  xx
 

void tss_dump t_printf_fn  printf_fn,
char *  s,
t_tss tss
 


Generated on Wed May 24 23:05:55 2006 for LSE/OS by  doxygen 1.4.6