set_segment_limit function
Set descriptor limit.
Declaration
function set_segment_limit(d: Word; s: DWord): BooleanDescription
Sets the limit of a descriptor.
Parameters:
- d
- selector.
- s
- new limit of the descriptor.
Return values: Returns True if successful, else False.
The new limit specified must be the byte length of the segment - 1.
Segment limits bigger than or equal to 1MB must be page aligned, they must
have the lower 12 bits set.
For an example, see allocate_ldt_descriptors.
Errors
Check the int31error variable.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
