[Previous][Up][Next] Reference for unit 'go32' (#rtl)

FPC specialities

The %ds and %es selector MUST always contain the same value or some system routines may crash when called. The %fs selector is preloaded with the DOSMEMSELECTOR variable at startup, and it MUST be restored after use, because again FPC relies on this for some functions. Luckily we asm programmers can still use the %gs selector for our own purposes, but for how long ?

See also

get_cs

  

Get CS selector

get_ds

  

Get DS Selector

get_ss

  

Return SS selector

allocate_ldt_descriptors

  

Allocate a number of descriptors

free_ldt_descriptor

  

Free a descriptor

segment_to_descriptor

  

Map segment address to descriptor

get_next_selector_increment_value

  

Return selector increment value

get_segment_base_address

  

Return base address from descriptor table

set_segment_base_address

  

Set descriptor's base address

set_segment_limit

  

Set descriptor limit

create_code_segment_alias_descriptor

  

Create new descriptor from existing descriptor


Documentation generated on: Jun 23 2021