next up previous contents index
Next: 10.3.7 pio.h: Programmed I/O Up: (X86) Generic Low-level Definitions Previous: 10.3.5 fp_reg.h: Floating point

10.3.6 far_ptr.h: Far (segment:offset) pointers

 

SYNOPSIS

#include <oskit/x86/far_ptr.h>

DESCRIPTION

This contains struct definitions for creating ``far pointers.'' Far pointers on the x86 are those that take an explicit segment in addition to the offset value.

struct far_pointer_16
  16-bit pointer structure which contains a 16-bit segment and a 16-bit offset. The address is computed as segment << 4 + offset.

struct far_pointer_32
  48-bit pointer which contains a 32-bit offset and a 16-bit segment descriptor. Segmentation is used to determine what linear address is generated by these pointers.



University of Utah Flux Research Group