segm.h File Reference

#include "routix/system.h"

Go to the source code of this file.

Classes

Defines

Typedefs

Functions


Define Documentation

#define _lidt valor   )     __asm__ __volatile__ ("lidt (%0)" : : "q" (valor));
 

Definition at line 77 of file segm.h.

Referenced by inicializarInterrupciones().

#define _set_ds valor   )     __asm__ __volatile__ ("movw %w0,%%ds\n\t" : : "r" (valor))
 

Definition at line 70 of file segm.h.

Referenced by init_MM_base().

#define _set_es valor   )     __asm__ __volatile__ ("movw %w0,%%es\n\t" : : "r" (valor))
 

Definition at line 71 of file segm.h.

Referenced by init_MM_base().

#define _set_esp valor   )     __asm__ __volatile__ ("movl %0,%%esp\n\t" : : "r" (valor))
 

Definition at line 75 of file segm.h.

#define _set_fs valor   )     __asm__ __volatile__ ("movw %w0,%%fs\n\t" : : "r" (valor))
 

Definition at line 72 of file segm.h.

Referenced by init_MM_base().

#define _set_gs valor   )     __asm__ __volatile__ ("movw %w0,%%gs\n\t" : : "r" (valor))
 

Definition at line 73 of file segm.h.

Referenced by init_MM_base().

#define _set_ss valor   )     __asm__ __volatile__ ("movw %w0,%%ss\n\t" : : "r" (valor))
 

Definition at line 74 of file segm.h.

#define ACCESED   1 << 0
 

Definition at line 44 of file segm.h.

#define CALL_GATE   0xc
 

Definition at line 52 of file segm.h.

#define CODIGO   1 << 3
 

Definition at line 40 of file segm.h.

Referenced by init_MM_base().

#define CONFORMING   1 << 2
 

Definition at line 41 of file segm.h.

#define DATA   0 << 3
 

Definition at line 35 of file segm.h.

#define DB   1 << 6
 

Definition at line 59 of file segm.h.

Referenced by init_MM_base().

#define DPL_0   0 << 6
 

Definition at line 26 of file segm.h.

Referenced by inicializarInterrupciones(), and init_MM_base().

#define DPL_1   1 << 5
 

Definition at line 27 of file segm.h.

#define DPL_2   2 << 5
 

Definition at line 28 of file segm.h.

#define DPL_3   3 << 5
 

Definition at line 29 of file segm.h.

Referenced by inicializarInterrupciones(), and init_MM_base().

#define EXPAND_DOWN   1 << 2
 

Definition at line 36 of file segm.h.

#define GENERAL   1 << 4
 

Definition at line 30 of file segm.h.

Referenced by init_MM_base().

#define GRANULARIDAD   1 << 7
 

Definition at line 58 of file segm.h.

Referenced by init_MM_base().

#define INT_GATE   0xe
 

Definition at line 53 of file segm.h.

Referenced by make_int_gate().

#define LDT   2
 

Definition at line 48 of file segm.h.

#define ldtr valor   )     __asm__ __volatile__ ("lldt %w0" : : "a" (valor));
 

Definition at line 78 of file segm.h.

#define PRESENTE   1 << 7
 

Definition at line 25 of file segm.h.

Referenced by inicializarInterrupciones(), and init_MM_base().

#define READ   1 << 1
 

Definition at line 42 of file segm.h.

#define SISTEMA   0
 

Definition at line 31 of file segm.h.

Referenced by init_MM_base().

#define TASK_GATE   5
 

Definition at line 49 of file segm.h.

Referenced by make_task_gate().

#define TRAP_GATE   0xf
 

Definition at line 54 of file segm.h.

Referenced by make_trap_gate().

#define TSS_AVAILABLE   9
 

Definition at line 50 of file segm.h.

Referenced by init_MM_base().

#define TSS_BUSY   0xb
 

Definition at line 51 of file segm.h.

#define WRITE   1 << 1
 

Definition at line 37 of file segm.h.

Referenced by init_MM_base().


Typedef Documentation

typedef struct descriptor_t descriptor_t
 

typedef struct gdtr_t gdtr_t
 

typedef gdtr_t idtr_t
 

Definition at line 12 of file segm.h.

Referenced by inicializarInterrupciones().


Function Documentation

__inline__ void lgdt gdtr_t dir_gdtr_so  ) 
 

Carga la gdt.

Definition at line 78 of file segm.c.

Referenced by init_MM_base().

descriptor_t make_descriptor dword  base,
dword  limite,
byte  atr1,
byte  atr2
 

Crea un descriptor de segmento.

Definition at line 15 of file segm.c.

Referenced by init_MM_base().

descriptor_t make_int_gate word  segselector,
dword  offset,
byte  atr
 

Crea un descriptor de un interrupt gate.

Definition at line 31 of file segm.c.

Referenced by inicializarInterrupciones().

descriptor_t make_task_gate word  segselector,
byte  atr
 

Definition at line 59 of file segm.c.

descriptor_t make_trap_gate word  segselector,
dword  offset,
byte  atr
 

Crea un descriptor de un trap gate.

Definition at line 45 of file segm.c.

Referenced by inicializarInterrupciones().


Generated on Sun May 30 18:38:36 2004 for Routix OS by doxygen 1.3.6