next up previous contents index
Next: 10.3.10 trap.h: Processor trap Up: (X86) Generic Low-level Definitions Previous: 10.3.8 seg.h: Segment descriptor

10.3.9 gate_init.h: Gate descriptor initialization support

   

SYNOPSIS

#include <oskit/x86/gate_init.h>

DESCRIPTION

This file contains the C structures and assembly-language macro definitions used to build x86 gate descriptor tables suitable for use by gate_init (see Section 10.5.10).
struct gate_init_entry
  C structure describing a gate descriptor.
GATE_INITTAB_BEGIN(name)
  Starts assembly-language definition of a gate descriptor table.
GATE_ENTRY(n, entry, type)
  Initializes an element of a gate descriptor table.
GATE_INITTAB_END
  Defines the end of a gate descriptor table.

The assembly-language macros are designed to be used while writing trap entrypoint routines. See oskit/libkern/x86/base_trap_inittab.S for example code that uses this facility.



University of Utah Flux Research Group