next up previous contents index
Next: (X86) Base Environment Up: (X86) Processor Identification and Previous: 10.5.9 paging_disable: disable page

10.5.10 gate_init: install gate descriptors

   

SYNOPSIS

#include <oskit/x86/gate_init.h>

void gate_init(struct x86_gate *dest, const struct gate_init_entry *src, unsigned entry_cs);

DESCRIPTION

Install entries in a processor descriptor table from the specified array of gate descriptors (see Section 10.3.9). Typically used to initialize the processor IDT with trap and interrupt vectors (see Section 10.7.4).

PARAMETERS

dest
Pointer to the x86 descriptor table to fill in.
src
Pointer to the gate_init_entry array to copy from.
entry_cs
Code segment selector to associate with all entries.

DEPENDENCIES

fill_gate
10.3.8



University of Utah Flux Research Group